From 2ce811bbbf2e651158e69e2fcf4060a45d5ad578 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 23 Mar 2017 05:50:31 -0400 Subject: [PATCH] Update auth_helper.rb --- app/helpers/auth_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/auth_helper.rb b/app/helpers/auth_helper.rb index 67cb3c2..eaafc55 100644 --- a/app/helpers/auth_helper.rb +++ b/app/helpers/auth_helper.rb @@ -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