authorization changes
This commit is contained in:
parent
b1c6bcbf9b
commit
0fd7e69981
|
@ -26,10 +26,12 @@ module Admin::AnnouncementsHelper
|
|||
end
|
||||
|
||||
def load_access_level
|
||||
if current_user.is_admin?
|
||||
if (current_user.is_admin? rescue false)
|
||||
@access_level = "admin"
|
||||
elsif current_user.is_manager?(@module_app)
|
||||
elsif (current_user.is_manager?(@module_app) rescue false)
|
||||
@access_level = "manager"
|
||||
else
|
||||
@access_level = "users"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue