mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
add more documentation
This commit is contained in:
parent
858b01fac1
commit
f02e0ca977
|
@ -2460,6 +2460,12 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
$groupIDs = "";
|
||||
$defAccess = $this->getDefaultAccess();
|
||||
|
||||
/* Check if the default access is < read access or >= read access.
|
||||
* If default access is less than read access, then create a list
|
||||
* of users and groups with read access.
|
||||
* If default access is equal or greater then read access, then
|
||||
* create a list of users and groups without read access.
|
||||
*/
|
||||
if ($defAccess<M_READ) {
|
||||
// Get the list of all users and groups that are listed in the ACL as
|
||||
// having read access to the document.
|
||||
|
@ -2470,9 +2476,12 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
// to the document.
|
||||
$tmpList = $this->getAccessList(M_NONE, O_LTEQ);
|
||||
}
|
||||
/** @var SeedDMS_Core_GroupAccess $groupAccess */
|
||||
foreach ($tmpList["groups"] as $groupAccess) {
|
||||
$groupIDs .= (strlen($groupIDs)==0 ? "" : ", ") . $groupAccess->getGroupID();
|
||||
}
|
||||
|
||||
/** @var SeedDMS_Core_UserAccess $userAccess */
|
||||
foreach ($tmpList["users"] as $userAccess) {
|
||||
$user = $userAccess->getUser();
|
||||
if (!$listadmin && $user->isAdmin()) continue;
|
||||
|
@ -2504,7 +2513,7 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
(strlen($userIDs) == 0 ? "" : " OR (`tblUsers`.`id` IN (". $userIDs ."))").
|
||||
") ORDER BY `login`";
|
||||
}
|
||||
/* If default access is equal or greater then M_READ, $userIDs and
|
||||
/* If default access is equal or greater than M_READ, $userIDs and
|
||||
* $groupIDs contains a list of user without read access
|
||||
*/
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user