summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-02-13 13:00:41 -0800
committerTim Almdal <tnalmdal@shaw.ca>2010-02-13 13:00:41 -0800
commitdcd7a8fbb8924665a07582aa53f07a86ef922287 (patch)
treed8c979b9dc72b3de943ec25dc883f25bde1750c6 /modules/gallery/controllers
parent650845eddaad250374330a14c47cda62bf41f20a (diff)
parent36702b1397dcac9ba5a607f62e2a1caeb307ac7a (diff)
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/gallery/controllers')
-rw-r--r--modules/gallery/controllers/albums.php11
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();