make recommendation they sign in and retry
This commit is contained in:
parent
ce72bde309
commit
46540ff753
1 changed files with 5 additions and 1 deletions
|
@ -32,7 +32,11 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
|
||||
def handle_unauthorized
|
||||
if authenticated?
|
||||
head :forbidden # TODO make this better
|
||||
else
|
||||
redirect_to new_user_session_path, notice: "Try signing in to do that."
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Reference in a new issue