diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-06-09 19:00:22 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-06-09 19:00:22 -0700 |
commit | e5d273e929b630ab86ce31bf75c3e0fa3064ced0 (patch) | |
tree | 92407184459e2c2fcb12360880bb1358caa0e48e /modules/user/controllers | |
parent | d0b25445119274760af40722eaa95279c2942a89 (diff) | |
parent | b276eaa68beca1266bf8fd83625ddfad73f44420 (diff) |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/user/controllers')
-rw-r--r-- | modules/user/controllers/logout.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/user/controllers/logout.php b/modules/user/controllers/logout.php index 6ceb7192..a541ed9b 100644 --- a/modules/user/controllers/logout.php +++ b/modules/user/controllers/logout.php @@ -26,7 +26,12 @@ class Logout_Controller extends Controller { log::info("user", t("User %name logged out", array("name" => $user->name)), html::anchor("user/$user->id", $user->name)); if ($this->input->get("continue")) { - url::redirect($this->input->get("continue")); + $item = url::get_item_from_uri($this->input->get("continue")); + if (access::can("view", $item)) { + url::redirect($this->input->get("continue")); + } else { + url::redirect(""); + } } } }
\ No newline at end of file |