Modify access to actually use the admin setting.
This commit is contained in:
parent
79ef918212
commit
9c3aa0080b
@ -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 == "") {
|
||||
|
@ -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 == "") {
|
||||
|
Reference in New Issue
Block a user