This will now allow RELATIVE_USER_APP to work correctly for the acl_check function.

This commit is contained in:
skeeter 2001-12-29 18:34:04 +00:00
parent 128a03f3c9
commit f70f3f0179

View File

@ -947,11 +947,12 @@
{ {
if (!is_array ($relatives)) if (!is_array ($relatives))
{ {
settype($relatives,'array');
$relatives = array (RELATIVE_CURRENT); $relatives = array (RELATIVE_CURRENT);
} }
/* Accommodate special situations */ /* Accommodate special situations */
if ($this->override_acl) if ($this->override_acl || $relatives[0] == RELATIVE_USER_APP)
{ {
return True; return True;
} }