From: <bh...@us...> - 2008-12-30 23:36:39
|
Revision: 19503 http://gallery.svn.sourceforge.net/gallery/?rev=19503&view=rev Author: bharat Date: 2008-12-30 23:36:36 +0000 (Tue, 30 Dec 2008) Log Message: ----------- Fix a bug. Unit tests ftw! Modified Paths: -------------- gallery3/trunk/core/helpers/access.php Modified: gallery3/trunk/core/helpers/access.php =================================================================== --- gallery3/trunk/core/helpers/access.php 2008-12-30 23:26:55 UTC (rev 19502) +++ gallery3/trunk/core/helpers/access.php 2008-12-30 23:36:36 UTC (rev 19503) @@ -147,11 +147,11 @@ 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 @@ 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) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |