Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
Revert change to authorize in Teams Controller hat is not needed in t…
Browse files Browse the repository at this point in the history
…his PR
  • Loading branch information
emcoding committed May 21, 2018
1 parent e765a2b commit 664d162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/teams_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 664d162

Please sign in to comment.