Commit c7d203e9825e5c6f3b4e015ac05fab4970041093

Authored by michael
1 parent d60c3db1

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,6 +351,7 @@ class Permission {
351 * @return boolean true if the user is the unit administrator for the unit to which the folder belongs, false otherwise 351 * @return boolean true if the user is the unit administrator for the unit to which the folder belongs, false otherwise
352 */ 352 */
353 function userIsUnitAdministrator($iFolderID) { 353 function userIsUnitAdministrator($iFolderID) {
  354 + global $default;
354 $sql = new Owl_DB(); 355 $sql = new Owl_DB();
355 $sql->query("SELECT UGL.group_id " . 356 $sql->query("SELECT UGL.group_id " .
356 "FROM $default->owl_users_groups_table AS UGL INNER JOIN $default->owl_groups_units_table AS GUL ON GUL.group_id = UGL.group_id " . 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 " .