From c7d203e9825e5c6f3b4e015ac05fab4970041093 Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 24 Jan 2003 10:45:54 +0000 Subject: [PATCH] added missing default global to userIsUnitAdminstrator --- lib/security/permission.inc | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/lib/security/permission.inc b/lib/security/permission.inc index f1cf07d..5ed2713 100644 --- a/lib/security/permission.inc +++ b/lib/security/permission.inc @@ -351,6 +351,7 @@ class Permission { * @return boolean true if the user is the unit administrator for the unit to which the folder belongs, false otherwise */ function userIsUnitAdministrator($iFolderID) { + global $default; $sql = new Owl_DB(); $sql->query("SELECT UGL.group_id " . "FROM $default->owl_users_groups_table AS UGL INNER JOIN $default->owl_groups_units_table AS GUL ON GUL.group_id = UGL.group_id " . -- libgit2 0.21.4