mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
take enableusersview into account (currently disabled)
This commit is contained in:
parent
637476f0a9
commit
78afbe8699
|
@ -70,6 +70,7 @@ $(document).ready( function() {
|
|||
$folder = $this->params['folder'];
|
||||
$document = $this->params['document'];
|
||||
$sortusersinlist = $this->params['sortusersinlist'];
|
||||
$enableusersview = $this->params['enableusersview'];
|
||||
|
||||
$notifyList = $document->getNotifyList(0, true);
|
||||
|
||||
|
@ -151,7 +152,7 @@ $(document).ready( function() {
|
|||
} else {
|
||||
print "<table class=\"table table-condensed table-sm mt-4\">\n";
|
||||
foreach ($notifyList["users"] as $userNotify) {
|
||||
if ($user->isAdmin() || $user->getID() == $userNotify->getID()) {
|
||||
if ($user->isAdmin() || /*$enableusersview || */$user->getID() == $userNotify->getID()) {
|
||||
print "<tr>";
|
||||
print "<td><i class=\"fa fa-user\"></i></td>";
|
||||
print "<td>" . htmlspecialchars($userNotify->getLogin() . " - " . $userNotify->getFullName()) . "</td>";
|
||||
|
@ -168,7 +169,8 @@ $(document).ready( function() {
|
|||
}
|
||||
}
|
||||
foreach ($notifyList["groups"] as $groupNotify) {
|
||||
if ($user->isAdmin() || $groupNotify->isMember($user,true)) {
|
||||
/* admins and members of a group may see exiting notifications */
|
||||
if ($user->isAdmin() || /*$enableusersview || */$groupNotify->isMember($user,false)) {
|
||||
print "<tr>";
|
||||
print "<td><i class=\"fa fa-group\"></i></td>";
|
||||
print "<td>" . htmlspecialchars($groupNotify->getName()) . "</td>";
|
||||
|
|
|
@ -67,9 +67,8 @@ $(document).ready(function() {
|
|||
$dms = $this->params['dms'];
|
||||
$user = $this->params['user'];
|
||||
$folder = $this->params['folder'];
|
||||
$allUsers = $this->params['allusers'];
|
||||
$allGroups = $this->params['allgroups'];
|
||||
$sortusersinlist = $this->params['sortusersinlist'];
|
||||
$enableusersview = $this->params['enableusersview'];
|
||||
|
||||
$notifyList = $folder->getNotifyList(0, true);
|
||||
|
||||
|
@ -151,7 +150,7 @@ $(document).ready(function() {
|
|||
} else {
|
||||
print "<table class=\"table table-condensed table-sm\">\n";
|
||||
foreach ($notifyList["users"] as $userNotify) {
|
||||
if ($user->isAdmin() || $user->getID() == $userNotify->getID()) {
|
||||
if ($user->isAdmin() || /*$enableusersview || */$user->getID() == $userNotify->getID()) {
|
||||
print "<tr>";
|
||||
print "<td><i class=\"fa fa-user\"></i></td>";
|
||||
print "<td>" . htmlspecialchars($userNotify->getLogin() . " - " . $userNotify->getFullName()) . "</td>";
|
||||
|
@ -168,7 +167,8 @@ $(document).ready(function() {
|
|||
}
|
||||
}
|
||||
foreach ($notifyList["groups"] as $groupNotify) {
|
||||
if ($user->isAdmin() || $groupNotify->isMember($user,true)) {
|
||||
/* admins and members of a group may see exiting notifications */
|
||||
if ($user->isAdmin() || /*$enableusersview || */$groupNotify->isMember($user,false)) {
|
||||
print "<tr>";
|
||||
print "<td><i class=\"fa fa-group\"></i></td>";
|
||||
print "<td>" . htmlspecialchars($groupNotify->getName()) . "</td>";
|
||||
|
|
Loading…
Reference in New Issue
Block a user