Skip to content

Commit

Permalink
Correções - não traz mais todos as permissões
Browse files Browse the repository at this point in the history
  • Loading branch information
FernandoKGA committed Nov 21, 2019
1 parent cbc960c commit 7cf2563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/app/controllers/college_whitelists_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
Expand Down

0 comments on commit 7cf2563

Please sign in to comment.