summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/access.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-07-25 10:05:09 -0700
committerBharat Mediratta <bharat@menalto.com>2010-07-25 10:05:09 -0700
commit075cea2a4890e57c60d91157bc33982e34a42a9c (patch)
tree9a94c5b7fabbad37191aac2b64d09c315ad578de /modules/gallery/helpers/access.php
parent108fff735cd0882f4b1ced4c2352fcd44247467e (diff)
Don't use hardcoded id 1 as the everybody group; it won't work with alternative auth schemes.
Diffstat (limited to 'modules/gallery/helpers/access.php')
-rw-r--r--modules/gallery/helpers/access.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gallery/helpers/access.php b/modules/gallery/helpers/access.php
index 87b6b313..d3f680d2 100644
--- a/modules/gallery/helpers/access.php
+++ b/modules/gallery/helpers/access.php
@@ -627,7 +627,8 @@ class access_Core {
* apply the view and view_full permissions to guest users.
*/
private static function _update_htaccess_files($album, $group, $perm_name, $value) {
- if ($group->id != 1 || !($perm_name == "view" || $perm_name == "view_full")) {
+ if ($group->id != identity::everybody()->id ||
+ !($perm_name == "view" || $perm_name == "view_full")) {
return;
}