fix indenting

This commit is contained in:
Uwe Steinmann 2021-09-24 10:21:10 +02:00
parent 8e302bc770
commit ce124bb862

View File

@ -1314,14 +1314,14 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
return $this->_parent->getAccessList($mode, $op);
}
if (!isset($this->_accessList[$mode])) {
if (!isset($this->_accessList[$mode])) {
if ($op!=O_GTEQ && $op!=O_LTEQ && $op!=O_EQ) {
return false;
}
$modeStr = "";
if ($mode!=M_ANY) {
$modeStr = " AND mode".$op.(int)$mode;
}
}
$queryStr = "SELECT * FROM `tblACLs` WHERE `targetType` = ".T_FOLDER.
" AND `target` = " . $this->_id . $modeStr . " ORDER BY `targetType`";
$resArr = $db->getResultArray($queryStr);
@ -1335,7 +1335,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
else //if ($row["groupID"] != -1)
array_push($this->_accessList[$mode]["groups"], new SeedDMS_Core_GroupAccess($this->_dms->getGroup($row["groupID"]), (int) $row["mode"]));
}
}
}
return $this->_accessList[$mode];
} /* }}} */