mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 08:54:23 -05:00
Update auth_helper.rb
This commit is contained in:
@@ -33,12 +33,12 @@ module AuthHelper
|
|||||||
|
|
||||||
|
|
||||||
def global_check_permission(permission)
|
def global_check_permission(permission)
|
||||||
if !global_allowed_to?(permission)
|
if !globaly_allowed_to?(permission)
|
||||||
render :file => "public/401.html.erb", :status => :unauthorized, :layout =>true
|
render :file => "public/401.html.erb", :status => :unauthorized, :layout =>true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def global_allowed_to?( action)
|
def globaly_allowed_to?( action)
|
||||||
return false if User.current.nil?
|
return false if User.current.nil?
|
||||||
|
|
||||||
projects = Project.all
|
projects = Project.all
|
||||||
|
|||||||
Reference in New Issue
Block a user