From 7cf256386940bbad596c04dc34aafd42685369bb Mon Sep 17 00:00:00 2001 From: FernandoKGA Date: Thu, 21 Nov 2019 01:07:19 -0300 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=B5es=20-=20n=C3=A3o=20traz=20mai?= =?UTF-8?q?s=20todos=20as=20permiss=C3=B5es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/app/controllers/college_whitelists_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/app/controllers/college_whitelists_controller.rb b/src/app/app/controllers/college_whitelists_controller.rb index ef06c8ec..fd2e6a41 100644 --- a/src/app/app/controllers/college_whitelists_controller.rb +++ b/src/app/app/controllers/college_whitelists_controller.rb @@ -28,7 +28,7 @@ def verify_permission # GET /college_whitelists.json def index if isPageAdmin(params[:college_id]) - @college_whitelists = CollegeWhitelist.all + @college_whitelists = CollegeWhitelist.where(college_id: params[:college_id]) render :index else flash[:danger] = 'Área restrita. Você não é administrador da página.'