summaryrefslogtreecommitdiff
path: root/users/app/controllers
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2012-11-05 14:50:13 -0800
committerjessib <jessib@riseup.net>2012-11-05 14:50:13 -0800
commitb3dc5378e5c09e91956aa899a6d71f0fc790de5e (patch)
tree042974e60bc75e7ed3f3a3c1b69fd51013144cd6 /users/app/controllers
parentc7177593aaf2b1b8fd8dbd53b9cfb6562e1411d7 (diff)
Unit test for is_admin?
Diffstat (limited to 'users/app/controllers')
-rw-r--r--users/app/controllers/controller_extension/authentication.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/users/app/controllers/controller_extension/authentication.rb b/users/app/controllers/controller_extension/authentication.rb
index 598d8a9..e27b4da 100644
--- a/users/app/controllers/controller_extension/authentication.rb
+++ b/users/app/controllers/controller_extension/authentication.rb
@@ -20,6 +20,7 @@ module ControllerExtension::Authentication
end
def access_denied
+ # TODO: should we redirect to the root_url in either case, and have the root_url include the login screen (and also ability to create unauthenticated tickets) when no user is logged in?
redirect_to login_url, :alert => "Not authorized" if !logged_in?
redirect_to root_url, :alert => "Not authorized" if logged_in?
end