add edit users for admin
This commit is contained in:
@ -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 })
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
<td>
|
||||
|
||||
@Html.ActionLink("Details", "Details", new { id = item.ID }) |
|
||||
@if (ViewBag.role == 1)
|
||||
@if (ViewBag.role > 0)
|
||||
{
|
||||
@Html.ActionLink("Edit", "Edit", new { id = item.ID })
|
||||
<span>|</span>
|
||||
|
||||
Reference in New Issue
Block a user