mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 16:35:38 +00:00
users will see only their own notifications
This commit is contained in:
parent
2b7f90991a
commit
28aaf8e28f
|
@ -151,10 +151,10 @@ $(document).ready( function() {
|
|||
} else {
|
||||
print "<table class=\"table table-condensed table-sm mt-4\">\n";
|
||||
foreach ($notifyList["users"] as $userNotify) {
|
||||
print "<tr>";
|
||||
print "<td><i class=\"fa fa-user\"></i></td>";
|
||||
print "<td>" . htmlspecialchars($userNotify->getLogin() . " - " . $userNotify->getFullName()) . "</td>";
|
||||
if ($user->isAdmin() || $user->getID() == $userNotify->getID()) {
|
||||
print "<tr>";
|
||||
print "<td><i class=\"fa fa-user\"></i></td>";
|
||||
print "<td>" . htmlspecialchars($userNotify->getLogin() . " - " . $userNotify->getFullName()) . "</td>";
|
||||
print "<form action=\"../op/op.DocumentNotify.php\" method=\"post\">\n";
|
||||
echo createHiddenFieldWithKey('documentnotify')."\n";
|
||||
print "<input type=\"hidden\" name=\"documentid\" value=\"".$document->getID()."\">\n";
|
||||
|
@ -164,14 +164,14 @@ $(document).ready( function() {
|
|||
print "<button type=\"submit\" class=\"btn btn-danger btn-mini btn-sm\"><i class=\"fa fa-remove\"></i> ".getMLText("delete")."</button>";
|
||||
print "</td>";
|
||||
print "</form>\n";
|
||||
}else print "<td></td>";
|
||||
print "</tr>";
|
||||
print "</tr>";
|
||||
}
|
||||
}
|
||||
foreach ($notifyList["groups"] as $groupNotify) {
|
||||
print "<tr>";
|
||||
print "<td><i class=\"fa fa-group\"></i></td>";
|
||||
print "<td>" . htmlspecialchars($groupNotify->getName()) . "</td>";
|
||||
if ($user->isAdmin() || $groupNotify->isMember($user,true)) {
|
||||
print "<tr>";
|
||||
print "<td><i class=\"fa fa-group\"></i></td>";
|
||||
print "<td>" . htmlspecialchars($groupNotify->getName()) . "</td>";
|
||||
print "<form action=\"../op/op.DocumentNotify.php\" method=\"post\">\n";
|
||||
echo createHiddenFieldWithKey('documentnotify')."\n";
|
||||
print "<input type=\"hidden\" name=\"documentid\" value=\"".$document->getID()."\">\n";
|
||||
|
@ -181,8 +181,8 @@ $(document).ready( function() {
|
|||
print "<button type=\"submit\" class=\"btn btn-danger btn-mini btn-sm\"><i class=\"fa fa-remove\"></i> ".getMLText("delete")."</button>";
|
||||
print "</td>";
|
||||
print "</form>\n";
|
||||
}else print "<td></td>";
|
||||
print "</tr>";
|
||||
print "</tr>";
|
||||
}
|
||||
}
|
||||
print "</table>\n";
|
||||
}
|
||||
|
|
|
@ -151,10 +151,10 @@ $(document).ready(function() {
|
|||
} else {
|
||||
print "<table class=\"table table-condensed table-sm\">\n";
|
||||
foreach ($notifyList["users"] as $userNotify) {
|
||||
print "<tr>";
|
||||
print "<td><i class=\"fa fa-user\"></i></td>";
|
||||
print "<td>" . htmlspecialchars($userNotify->getLogin() . " - " . $userNotify->getFullName()) . "</td>";
|
||||
if ($user->isAdmin() || $user->getID() == $userNotify->getID()) {
|
||||
print "<tr>";
|
||||
print "<td><i class=\"fa fa-user\"></i></td>";
|
||||
print "<td>" . htmlspecialchars($userNotify->getLogin() . " - " . $userNotify->getFullName()) . "</td>";
|
||||
print "<form action=\"../op/op.FolderNotify.php\" method=\"post\">\n";
|
||||
echo createHiddenFieldWithKey('foldernotify')."\n";
|
||||
print "<input type=\"Hidden\" name=\"folderid\" value=\"".$folder->getID()."\">\n";
|
||||
|
@ -164,14 +164,14 @@ $(document).ready(function() {
|
|||
print "<button type=\"submit\" class=\"btn btn-danger btn-mini btn-sm\"><i class=\"fa fa-remove\"></i> ".getMLText("delete")."</button>";
|
||||
print "</td>";
|
||||
print "</form>\n";
|
||||
}else print "<td></td>";
|
||||
print "</tr>";
|
||||
print "</tr>";
|
||||
}
|
||||
}
|
||||
foreach ($notifyList["groups"] as $groupNotify) {
|
||||
print "<tr>";
|
||||
print "<td><i class=\"fa fa-group\"></i></td>";
|
||||
print "<td>" . htmlspecialchars($groupNotify->getName()) . "</td>";
|
||||
if ($user->isAdmin() || $groupNotify->isMember($user,true)) {
|
||||
print "<tr>";
|
||||
print "<td><i class=\"fa fa-group\"></i></td>";
|
||||
print "<td>" . htmlspecialchars($groupNotify->getName()) . "</td>";
|
||||
print "<form action=\"../op/op.FolderNotify.php\" method=\"post\">\n";
|
||||
echo createHiddenFieldWithKey('foldernotify')."\n";
|
||||
print "<input type=\"Hidden\" name=\"folderid\" value=\"".$folder->getID()."\">\n";
|
||||
|
@ -181,8 +181,8 @@ $(document).ready(function() {
|
|||
print "<button type=\"submit\" class=\"btn btn-danger btn-mini btn-sm\"><i class=\"fa fa-remove\"></i> ".getMLText("delete")."</button>";
|
||||
print "</td>";
|
||||
print "</form>\n";
|
||||
}else print "<td></td>";
|
||||
print "</tr>";
|
||||
print "</tr>";
|
||||
}
|
||||
}
|
||||
print "</table>\n";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user