Skip to content

Commit

Permalink
Ensure before_actions are executed for settings writers
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Feb 15, 2021
1 parent 79f5e33 commit 47d4bdd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/authentication_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#++

class AuthenticationController < ApplicationController
before_action :require_login
before_action :require_admin
layout 'admin'
menu_item :authentication_settings

Expand Down
1 change: 1 addition & 0 deletions app/controllers/users_settings_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

class UsersSettingsController < ::ApplicationController
layout 'admin'
before_action :require_admin
menu_item :user_settings

def index
Expand Down
1 change: 1 addition & 0 deletions app/controllers/work_packages/settings_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

class WorkPackages::SettingsController < ::ApplicationController
layout 'admin'
before_action :require_admin
current_menu_item :index do
:work_packages_setting
end
Expand Down

0 comments on commit 47d4bdd

Please sign in to comment.