summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-10-24 17:03:40 -0700
committerBharat Mediratta <bharat@menalto.com>2010-10-24 17:03:40 -0700
commit4dc451629cc46e24b086d500182e4b053ec80b04 (patch)
treeee0187052c45fda876f0faa8608887217016f622 /modules
parentdb00958cee5e7373cf4bc439d65e687e7ef2d985 (diff)
Allow access to the rest module when the gallery is wholly private. Fixes ticket #1452.
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/helpers/gallery.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery.php b/modules/gallery/helpers/gallery.php
index ac51e2a6..2bb55ccb 100644
--- a/modules/gallery/helpers/gallery.php
+++ b/modules/gallery/helpers/gallery.php
@@ -51,6 +51,7 @@ class gallery_Core {
if (Router::$controller != "login" &&
Router::$controller != "combined" &&
Router::$controller != "digibug" &&
+ Router::$controller != "rest" &&
identity::active_user()->guest &&
!access::user_can(identity::guest(), "view", item::root()) &&
php_sapi_name() != "cli") {