Commit 4676b4160c8c89b525aaba5db5a3fd2e701a0a59

Authored by Michael Joseph
1 parent d1c5664a

added missing default global to userIsUnitAdminstrator


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@536 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 1 additions and 0 deletions
lib/security/permission.inc
... ... @@ -351,6 +351,7 @@ class Permission {
351 351 * @return boolean true if the user is the unit administrator for the unit to which the folder belongs, false otherwise
352 352 */
353 353 function userIsUnitAdministrator($iFolderID) {
  354 + global $default;
354 355 $sql = new Owl_DB();
355 356 $sql->query("SELECT UGL.group_id " .
356 357 "FROM $default->owl_users_groups_table AS UGL INNER JOIN $default->owl_groups_units_table AS GUL ON GUL.group_id = UGL.group_id " .
... ...