mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 09:10:43 -04:00
Update auth_helper.rb
This commit is contained in:
1 parent
02153de8b0
commit
2ce811bbbf
1 file changed
+2
-2
@@ -33,12 +33,12 @@ module AuthHelper
|
||||
|
||||
|
||||
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
|
||||
end
|
||||
end
|
||||
|
||||
def global_allowed_to?( action)
|
||||
def globaly_allowed_to?( action)
|
||||
return false if User.current.nil?
|
||||
|
||||
projects = Project.all
|
||||
|
||||
Reference in new issue
Block a user