diff options
author | jessib <jessib@riseup.net> | 2012-11-02 15:10:45 -0700 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2012-11-02 15:10:45 -0700 |
commit | fb1c8e60335fefc55191eee16d83f53d2e9a2031 (patch) | |
tree | d29fd3fd7867711c8ffb9231077a245fec7c8b1c /users/app/controllers/controller_extension | |
parent | 4db41d772725387ba36240cf8f3529780e896755 (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')
-rw-r--r-- | users/app/controllers/controller_extension/authentication.rb | 3 |
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? |