fix Access issues
This commit is contained in:
@ -24,7 +24,7 @@
|
||||
</dt>
|
||||
|
||||
<dd>
|
||||
<img src="@Url.Content(Model.image)" height="270" width="200" />
|
||||
<img src="@Url.Content(Model.image)" alt="@Model.title" height="270" width="200" />
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
|
||||
@ -40,13 +40,19 @@
|
||||
</dl>
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
@Html.ActionLink("edit account details", "Edit", null, new { @class = "btn btn-outline-dark" })
|
||||
|
||||
|
||||
@Html.ActionLink("Logout", "LogOut", null, new { @class = "btn btn-outline-dark" })
|
||||
|
||||
@if (@ViewBag.role == "admin")
|
||||
{
|
||||
@Html.ActionLink("Manage users", "allusers", null, new { @class = "btn btn-outline-dark" })
|
||||
}
|
||||
</div>
|
||||
<br />
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
@Html.ActionLink("Delete Account", "Delete", null, new { @class = "btn btn-outline-dark" })
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
@ -35,7 +35,7 @@
|
||||
@Html.DisplayFor(modelItem => item.displayname)
|
||||
</td>
|
||||
<td>
|
||||
@Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
|
||||
@Html.ActionLink("Edit", "Edituser", new { id=item.ID }) |
|
||||
@Html.ActionLink("Details", "Details", new { id=item.ID }) |
|
||||
@Html.ActionLink("Delete", "Delete", new { id=item.ID })
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user