summaryrefslogtreecommitdiff
path: root/core/helpers/access.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-16 02:31:13 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-16 02:31:13 +0000
commitdc089173456c95dcec1e6184b8e6b5b2810ced52 (patch)
tree756da1aa7e98ff9f98d0373c34035403a6510bc7 /core/helpers/access.php
parent02aa98b6e0f4bfdc70cbb28e16910c2f173072f9 (diff)
Fix a bug where we were not deleting the .htaccess file on access::reset()
Diffstat (limited to 'core/helpers/access.php')
-rw-r--r--core/helpers/access.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/helpers/access.php b/core/helpers/access.php
index 36ef9c5c..f40a5c7c 100644
--- a/core/helpers/access.php
+++ b/core/helpers/access.php
@@ -146,10 +146,10 @@ class access_Core {
if ($perm_name =="view") {
self::_update_access_view_cache($group, $album);
if ($group->id == 1) {
- if ($value) {
- self::_delete_htaccess_files($album);
- } else {
+ if ($value === self::DENY) {
self::_create_htaccess_files($album);
+ } else {
+ self::_delete_htaccess_files($album);
}
}
} else {