From 664d16201059188e66f83cf34408269f7fca639b Mon Sep 17 00:00:00 2001 From: F3PiX Date: Mon, 21 May 2018 10:46:43 +0200 Subject: [PATCH] Revert change to authorize in Teams Controller hat is not needed in this PR --- app/controllers/teams_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/teams_controller.rb b/app/controllers/teams_controller.rb index d9f6453d1..6273deb75 100644 --- a/app/controllers/teams_controller.rb +++ b/app/controllers/teams_controller.rb @@ -4,7 +4,7 @@ class TeamsController < ApplicationController before_action :set_users, only: [:new, :edit] before_action :set_display_roles, only: :index - authorize_resource except: [:index, :show] + load_and_authorize_resource except: [:index, :show] def index direction = params[:direction] == 'asc' ? 'ASC' : 'DESC'