Skip to content

Commit

Permalink
Allow access to the rest module when the gallery is wholly private. F…
Browse files Browse the repository at this point in the history
…ixes ticket #1452.
  • Loading branch information
bharat committed Oct 25, 2010
1 parent db00958 commit 4dc4516
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/gallery/helpers/gallery.php
Expand Up @@ -51,6 +51,7 @@ static function private_gallery() {
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") {
Expand Down

0 comments on commit 4dc4516

Please sign in to comment.