summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-30 23:36:36 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-30 23:36:36 +0000
commit610aa75d3f3a103a8ca313cf6df086cf2d08cea5 (patch)
treed12f3e8821b2c6207de335490477b4fb08ece65c
parent6e6d3dd9696df68e7a0bd37e1926cdbc2b894991 (diff)
Fix a bug. Unit tests ftw!
-rw-r--r--core/helpers/access.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/helpers/access.php b/core/helpers/access.php
index abfc8046..ba2924ef 100644
--- a/core/helpers/access.php
+++ b/core/helpers/access.php
@@ -147,11 +147,11 @@ class access_Core {
if ($perm_name == "view") {
self::_update_access_view_cache($group, $album);
+ self::_update_htaccess_files($album, $group, $perm_name, $value);
} else {
self::_update_access_non_view_cache($group, $perm_name, $album);
}
- self::_update_htaccess_files($album, $group, $perm_name, $value);
}
/**
@@ -519,7 +519,9 @@ class access_Core {
return;
}
- if ($value == self::DENY) {
+ print "[$album, $group, $perm_name, $value, " . self::DENY . "]\n";
+
+ if ($value === self::DENY) {
foreach (array($album->file_path(),
dirname($album->resize_path()),
dirname($album->thumb_path())) as $dir) {