summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/movies.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-02-10 09:55:39 -0800
committerBharat Mediratta <bharat@menalto.com>2010-02-10 09:55:39 -0800
commit592689a759a281a77aa2c622f199357eda43d9c2 (patch)
tree82f228a28d0c2a6ed78f51f7478a41ae0b1135b6 /modules/gallery/controllers/movies.php
parent6a40e0a341d84e792990b22b10375b80e41bf6ba (diff)
parent8ef08d20883d9b9aa0b7560ce3bf6da8a6632149 (diff)
Merge branch 'master' of github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/controllers/movies.php')
-rw-r--r--modules/gallery/controllers/movies.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/gallery/controllers/movies.php b/modules/gallery/controllers/movies.php
index b51282b3..8041066e 100644
--- a/modules/gallery/controllers/movies.php
+++ b/modules/gallery/controllers/movies.php
@@ -24,7 +24,11 @@ class Movies_Controller extends Items_Controller {
// sure that we're actually receiving an object
Kohana::show_404();
}
- access::required("view", $movie);
+
+ if (!access::can("view", $movie)) {
+ print auth::require_login();
+ return;
+ }
$where = array(array("type", "!=", "album"));
$position = $movie->parent()->get_position($movie, $where);