mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-18 22:21:11 +00:00
Provide a helper to point to sign up/in for different configs
This commit is contained in:
parent
2c98ba9711
commit
a9581445f3
2 changed files with 17 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ module Admin
|
|||
|
||||
def verify_user_admin
|
||||
if (current_user.nil?)
|
||||
redirect_to new_user_session_path
|
||||
redirect_to sign_in_path
|
||||
return false
|
||||
end
|
||||
unless (current_user.has_role? :organizer, :any) || (current_user.has_role? :cfp, :any) ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue