mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update auth_helper.rb
This commit is contained in:
@@ -11,10 +11,10 @@
|
||||
module AuthHelper
|
||||
|
||||
def require_user
|
||||
return if session[:token]
|
||||
|
||||
if !User.current.logged?
|
||||
unless session[:token]
|
||||
render :file => "public/401.html.erb", :status => :unauthorized, :layout =>true
|
||||
end
|
||||
render :file => "public/401.html.erb", :status => :unauthorized, :layout =>true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user