Skip to content

Commit

Permalink
Always authenticate admin users when authenticating for other roles
Browse files Browse the repository at this point in the history
Progress towards #61
  • Loading branch information
BGMP committed Mar 9, 2024
1 parent 4ae5785 commit e8e1d86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/application_controller.rb
Expand Up @@ -88,11 +88,11 @@ def authenticate_admin
end

def authenticate_mod
redirect_to root_path, :notice => t('alerts.no-permission') unless user_is_mod?
redirect_to root_path, :notice => t('alerts.no-permission') unless user_is_mod? || user_is_admin?
end

def authenticate_organizer
redirect_to root_path, :notice => t('alerts.no-permission') unless user_is_organizer?
redirect_to root_path, :notice => t('alerts.no-permission') unless user_is_organizer? || user_is_admin?
end

def authenticate_staff
Expand Down

0 comments on commit e8e1d86

Please sign in to comment.