make recommendation they sign in and retry

This commit is contained in:
Connor Turland 2016-04-22 10:58:49 -04:00
parent ce72bde309
commit 46540ff753

View file

@ -32,7 +32,11 @@ class ApplicationController < ActionController::Base
end end
def handle_unauthorized def handle_unauthorized
if authenticated?
head :forbidden # TODO make this better head :forbidden # TODO make this better
else
redirect_to new_user_session_path, notice: "Try signing in to do that."
end
end end
private private