1
0

Modify access to actually use the admin setting.

This commit is contained in:
rWatcher 2010-11-07 01:43:09 -04:00
parent 79ef918212
commit 9c3aa0080b
2 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@ class access extends access_Core {
// Begin rWatcher modifications.
// This section adds an additional condition onto the view permission that throws a 404
// error if the album has a password assigned.
} elseif ($perm_name == "view") {
} elseif (($perm_name == "view") && (module::get_var("albumpassword", "hideonly") == false)) {
$album_item = "";
do {
if ($album_item == "") {

View File

@ -31,7 +31,7 @@ class access extends access_Core {
// Begin rWatcher modifications.
// This section adds an additional condition onto the view permission that throws a 404
// error if the album has a password assigned.
} elseif ($perm_name == "view") {
} elseif (($perm_name == "view") && (module::get_var("albumpassword", "hideonly") == false)) {
$album_item = "";
do {
if ($album_item == "") {