From f70f3f0179975ba3e8a5d97efaadda7df6d3ba22 Mon Sep 17 00:00:00 2001 From: skeeter Date: Sat, 29 Dec 2001 18:34:04 +0000 Subject: [PATCH] This will now allow RELATIVE_USER_APP to work correctly for the acl_check function. --- phpgwapi/inc/class.vfs_sql.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.vfs_sql.inc.php b/phpgwapi/inc/class.vfs_sql.inc.php index 2d4b86c95e..537605b2b5 100644 --- a/phpgwapi/inc/class.vfs_sql.inc.php +++ b/phpgwapi/inc/class.vfs_sql.inc.php @@ -947,11 +947,12 @@ { if (!is_array ($relatives)) { + settype($relatives,'array'); $relatives = array (RELATIVE_CURRENT); } /* Accommodate special situations */ - if ($this->override_acl) + if ($this->override_acl || $relatives[0] == RELATIVE_USER_APP) { return True; }