add edit users for admin

This commit is contained in:
2024-08-10 17:10:45 +03:30
parent f71b11c131
commit 4ffc4197aa
15 changed files with 116 additions and 25 deletions

View File

@ -34,7 +34,7 @@
</td>
<td>
@Html.ActionLink("Read", "../news/Details", new { id = item.ID })|
@if (ViewBag.role == 1 || ViewBag.uid == item.userID)
@if (ViewBag.role > 0 || ViewBag.uid == item.userID)
{
@Html.ActionLink("Edit", "../news/Edit", new { id = item.ID })