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

Commit

Permalink
Revert changes to authorize method in controllers that are not needed…
Browse files Browse the repository at this point in the history
… in this PR
  • Loading branch information
emcoding committed May 21, 2018
1 parent e765a2b commit 9d685da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/controllers/community_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# frozen_string_literal: true
class CommunityController < ApplicationController
before_action :normalize_params, only: :index
authorize_resource :user, parent: false

def index
@filters = {
Expand Down
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 9d685da

Please sign in to comment.