mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 12:41:30 +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 {
|
} else {
|
||||||
print "<table class=\"table table-condensed table-sm mt-4\">\n";
|
print "<table class=\"table table-condensed table-sm mt-4\">\n";
|
||||||
foreach ($notifyList["users"] as $userNotify) {
|
foreach ($notifyList["users"] as $userNotify) {
|
||||||
|
if ($user->isAdmin() || $user->getID() == $userNotify->getID()) {
|
||||||
print "<tr>";
|
print "<tr>";
|
||||||
print "<td><i class=\"fa fa-user\"></i></td>";
|
print "<td><i class=\"fa fa-user\"></i></td>";
|
||||||
print "<td>" . htmlspecialchars($userNotify->getLogin() . " - " . $userNotify->getFullName()) . "</td>";
|
print "<td>" . htmlspecialchars($userNotify->getLogin() . " - " . $userNotify->getFullName()) . "</td>";
|
||||||
if ($user->isAdmin() || $user->getID() == $userNotify->getID()) {
|
|
||||||
print "<form action=\"../op/op.DocumentNotify.php\" method=\"post\">\n";
|
print "<form action=\"../op/op.DocumentNotify.php\" method=\"post\">\n";
|
||||||
echo createHiddenFieldWithKey('documentnotify')."\n";
|
echo createHiddenFieldWithKey('documentnotify')."\n";
|
||||||
print "<input type=\"hidden\" name=\"documentid\" value=\"".$document->getID()."\">\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 "<button type=\"submit\" class=\"btn btn-danger btn-mini btn-sm\"><i class=\"fa fa-remove\"></i> ".getMLText("delete")."</button>";
|
||||||
print "</td>";
|
print "</td>";
|
||||||
print "</form>\n";
|
print "</form>\n";
|
||||||
}else print "<td></td>";
|
|
||||||
print "</tr>";
|
print "</tr>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
foreach ($notifyList["groups"] as $groupNotify) {
|
foreach ($notifyList["groups"] as $groupNotify) {
|
||||||
|
if ($user->isAdmin() || $groupNotify->isMember($user,true)) {
|
||||||
print "<tr>";
|
print "<tr>";
|
||||||
print "<td><i class=\"fa fa-group\"></i></td>";
|
print "<td><i class=\"fa fa-group\"></i></td>";
|
||||||
print "<td>" . htmlspecialchars($groupNotify->getName()) . "</td>";
|
print "<td>" . htmlspecialchars($groupNotify->getName()) . "</td>";
|
||||||
if ($user->isAdmin() || $groupNotify->isMember($user,true)) {
|
|
||||||
print "<form action=\"../op/op.DocumentNotify.php\" method=\"post\">\n";
|
print "<form action=\"../op/op.DocumentNotify.php\" method=\"post\">\n";
|
||||||
echo createHiddenFieldWithKey('documentnotify')."\n";
|
echo createHiddenFieldWithKey('documentnotify')."\n";
|
||||||
print "<input type=\"hidden\" name=\"documentid\" value=\"".$document->getID()."\">\n";
|
print "<input type=\"hidden\" name=\"documentid\" value=\"".$document->getID()."\">\n";
|
||||||
|
@ -181,9 +181,9 @@ $(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 "<button type=\"submit\" class=\"btn btn-danger btn-mini btn-sm\"><i class=\"fa fa-remove\"></i> ".getMLText("delete")."</button>";
|
||||||
print "</td>";
|
print "</td>";
|
||||||
print "</form>\n";
|
print "</form>\n";
|
||||||
}else print "<td></td>";
|
|
||||||
print "</tr>";
|
print "</tr>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
print "</table>\n";
|
print "</table>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -151,10 +151,10 @@ $(document).ready(function() {
|
||||||
} else {
|
} else {
|
||||||
print "<table class=\"table table-condensed table-sm\">\n";
|
print "<table class=\"table table-condensed table-sm\">\n";
|
||||||
foreach ($notifyList["users"] as $userNotify) {
|
foreach ($notifyList["users"] as $userNotify) {
|
||||||
|
if ($user->isAdmin() || $user->getID() == $userNotify->getID()) {
|
||||||
print "<tr>";
|
print "<tr>";
|
||||||
print "<td><i class=\"fa fa-user\"></i></td>";
|
print "<td><i class=\"fa fa-user\"></i></td>";
|
||||||
print "<td>" . htmlspecialchars($userNotify->getLogin() . " - " . $userNotify->getFullName()) . "</td>";
|
print "<td>" . htmlspecialchars($userNotify->getLogin() . " - " . $userNotify->getFullName()) . "</td>";
|
||||||
if ($user->isAdmin() || $user->getID() == $userNotify->getID()) {
|
|
||||||
print "<form action=\"../op/op.FolderNotify.php\" method=\"post\">\n";
|
print "<form action=\"../op/op.FolderNotify.php\" method=\"post\">\n";
|
||||||
echo createHiddenFieldWithKey('foldernotify')."\n";
|
echo createHiddenFieldWithKey('foldernotify')."\n";
|
||||||
print "<input type=\"Hidden\" name=\"folderid\" value=\"".$folder->getID()."\">\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 "<button type=\"submit\" class=\"btn btn-danger btn-mini btn-sm\"><i class=\"fa fa-remove\"></i> ".getMLText("delete")."</button>";
|
||||||
print "</td>";
|
print "</td>";
|
||||||
print "</form>\n";
|
print "</form>\n";
|
||||||
}else print "<td></td>";
|
|
||||||
print "</tr>";
|
print "</tr>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
foreach ($notifyList["groups"] as $groupNotify) {
|
foreach ($notifyList["groups"] as $groupNotify) {
|
||||||
|
if ($user->isAdmin() || $groupNotify->isMember($user,true)) {
|
||||||
print "<tr>";
|
print "<tr>";
|
||||||
print "<td><i class=\"fa fa-group\"></i></td>";
|
print "<td><i class=\"fa fa-group\"></i></td>";
|
||||||
print "<td>" . htmlspecialchars($groupNotify->getName()) . "</td>";
|
print "<td>" . htmlspecialchars($groupNotify->getName()) . "</td>";
|
||||||
if ($user->isAdmin() || $groupNotify->isMember($user,true)) {
|
|
||||||
print "<form action=\"../op/op.FolderNotify.php\" method=\"post\">\n";
|
print "<form action=\"../op/op.FolderNotify.php\" method=\"post\">\n";
|
||||||
echo createHiddenFieldWithKey('foldernotify')."\n";
|
echo createHiddenFieldWithKey('foldernotify')."\n";
|
||||||
print "<input type=\"Hidden\" name=\"folderid\" value=\"".$folder->getID()."\">\n";
|
print "<input type=\"Hidden\" name=\"folderid\" value=\"".$folder->getID()."\">\n";
|
||||||
|
@ -181,9 +181,9 @@ $(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 "<button type=\"submit\" class=\"btn btn-danger btn-mini btn-sm\"><i class=\"fa fa-remove\"></i> ".getMLText("delete")."</button>";
|
||||||
print "</td>";
|
print "</td>";
|
||||||
print "</form>\n";
|
print "</form>\n";
|
||||||
}else print "<td></td>";
|
|
||||||
print "</tr>";
|
print "</tr>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
print "</table>\n";
|
print "</table>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user