diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-02-13 13:00:41 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-02-13 13:00:41 -0800 |
commit | dcd7a8fbb8924665a07582aa53f07a86ef922287 (patch) | |
tree | d8c979b9dc72b3de943ec25dc883f25bde1750c6 /modules/gallery/controllers | |
parent | 650845eddaad250374330a14c47cda62bf41f20a (diff) | |
parent | 36702b1397dcac9ba5a607f62e2a1caeb307ac7a (diff) |
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/gallery/controllers')
-rw-r--r-- | modules/gallery/controllers/albums.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/modules/gallery/controllers/albums.php b/modules/gallery/controllers/albums.php index c2b474ee..036dade0 100644 --- a/modules/gallery/controllers/albums.php +++ b/modules/gallery/controllers/albums.php @@ -29,16 +29,7 @@ class Albums_Controller extends Items_Controller { throw new Kohana_404_Exception(); } - if (!access::can("view", $album)) { - if ($album->id == 1) { - // Even show the login page to logged in users. - // It's a better user experience than a "Dang" error page. - print auth::login_page(); - return; - } else { - access::required("view", $album); - } - } + access::required("view", $album); $page_size = module::get_var("gallery", "page_size", 9); $input = Input::instance(); |