summaryrefslogtreecommitdiff
path: root/users/app/controllers/controller_extension/authentication.rb
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2012-11-02 15:10:45 -0700
committerjessib <jessib@riseup.net>2012-11-02 15:10:45 -0700
commitfb1c8e60335fefc55191eee16d83f53d2e9a2031 (patch)
treed29fd3fd7867711c8ffb9231077a245fec7c8b1c /users/app/controllers/controller_extension/authentication.rb
parent4db41d772725387ba36240cf8f3529780e896755 (diff)
Some rough functionality for tickets, like showing ticket list for admins, and initial way to close tickets.
Diffstat (limited to 'users/app/controllers/controller_extension/authentication.rb')
-rw-r--r--users/app/controllers/controller_extension/authentication.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/users/app/controllers/controller_extension/authentication.rb b/users/app/controllers/controller_extension/authentication.rb
index c3342f3..ebd80b0 100644
--- a/users/app/controllers/controller_extension/authentication.rb
+++ b/users/app/controllers/controller_extension/authentication.rb
@@ -20,7 +20,8 @@ module ControllerExtension::Authentication
end
def access_denied
- redirect_to login_url, :alert => "Not authorized"
+ redirect_to login_url, :alert => "Not authorized" if !logged_in?
+ redirect_to root_url, :alert => "Not authorized"
end
def admin?