Skip to content

Commit 47d4bdd

Browse files
Ensure before_actions are executed for settings writers
1 parent 79f5e33 commit 47d4bdd

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

app/controllers/authentication_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#++
2929

3030
class AuthenticationController < ApplicationController
31-
before_action :require_login
31+
before_action :require_admin
3232
layout 'admin'
3333
menu_item :authentication_settings
3434

app/controllers/users_settings_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
class UsersSettingsController < ::ApplicationController
3232
layout 'admin'
33+
before_action :require_admin
3334
menu_item :user_settings
3435

3536
def index

app/controllers/work_packages/settings_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
class WorkPackages::SettingsController < ::ApplicationController
3232
layout 'admin'
33+
before_action :require_admin
3334
current_menu_item :index do
3435
:work_packages_setting
3536
end

0 commit comments

Comments
 (0)