mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 16:35:38 +00:00
- do not output user/group if access rights are not sufficient to add
a notification
This commit is contained in:
parent
7b189e2449
commit
c594cb334a
|
@ -118,7 +118,7 @@ print "</table>\n";
|
|||
if ($user->isAdmin()) {
|
||||
$allUsers = $dms->getAllUsers();
|
||||
foreach ($allUsers as $userObj) {
|
||||
if (!$userObj->isGuest() && !in_array($userObj->getID(), $userNotifyIDs))
|
||||
if (!$userObj->isGuest() && ($document->getAccessMode($userObj) >= M_READ) && !in_array($userObj->getID(), $userNotifyIDs))
|
||||
print "<option value=\"".$userObj->getID()."\">" . $userObj->getFullName() . "\n";
|
||||
}
|
||||
}
|
||||
|
@ -137,7 +137,7 @@ print "</table>\n";
|
|||
<?php
|
||||
$allGroups = $dms->getAllGroups();
|
||||
foreach ($allGroups as $groupObj) {
|
||||
if (($user->isAdmin() || $groupObj->isMember($user,true)) && !in_array($groupObj->getID(), $groupNotifyIDs)) {
|
||||
if (($user->isAdmin() || $groupObj->isMember($user,true)) && $document->getGroupAccessMode($groupObj) >= M_READ && !in_array($groupObj->getID(), $groupNotifyIDs)) {
|
||||
print "<option value=\"".$groupObj->getID()."\">" . $groupObj->getName() . "\n";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -117,7 +117,7 @@ print "</table>\n";
|
|||
if ($user->isAdmin()) {
|
||||
$allUsers = $dms->getAllUsers();
|
||||
foreach ($allUsers as $userObj) {
|
||||
if (!$userObj->isGuest() && !in_array($userObj->getID(), $userNotifyIDs))
|
||||
if (!$userObj->isGuest() && ($folder->getAccessMode($userObj) >= M_READ) && !in_array($userObj->getID(), $userNotifyIDs))
|
||||
print "<option value=\"".$userObj->getID()."\">" . $userObj->getFullName() . "\n";
|
||||
}
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ print "</table>\n";
|
|||
<?php
|
||||
$allGroups = $dms->getAllGroups();
|
||||
foreach ($allGroups as $groupObj) {
|
||||
if (($user->isAdmin() || $groupObj->isMember($user,true)) && !in_array($groupObj->getID(), $groupNotifyIDs)) {
|
||||
if (($user->isAdmin() || $groupObj->isMember($user,true)) && $folder->getGroupAccessMode($groupObj) >= M_READ && !in_array($groupObj->getID(), $groupNotifyIDs)) {
|
||||
print "<option value=\"".$groupObj->getID()."\">" . $groupObj->getName() . "\n";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user