Update auth_helper.rb

This commit is contained in:
2017-03-23 05:50:31 -04:00
committed by GitHub
parent 02153de8b0
commit 2ce811bbbf

View File

@@ -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