diff options
author | Marc <dkm@kataplop.net> | 2009-06-10 09:53:00 +0200 |
---|---|---|
committer | Marc <dkm@kataplop.net> | 2009-06-10 09:53:00 +0200 |
commit | 9b4c7ba73cc86dca8fb6cf81a37fbf806e643483 (patch) | |
tree | 0c4d3a99471c21103a34ad5e2fb748199fe4f8f2 /modules/user/controllers | |
parent | 657e17361db19ac1878b2a6d93595a763aef8b15 (diff) | |
parent | fc64a55f2e6d2e3f16e0806e6672f7d8c8de42a7 (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 |