Permissions & Authorization for Users #24

Initial Release; Includes Database and MVC refactoring
This commit is contained in:
Gary Sharp
2013-10-10 19:13:16 +11:00
parent 172ce5524a
commit a099d68915
458 changed files with 40221 additions and 12130 deletions
+14 -13
View File
@@ -5,23 +5,17 @@
<table class="genericData userTable">
<thead>
<tr>
<th>
Id
<th>Id
</th>
<th>
Surname
<th>Surname
</th>
<th>
Given Name
<th>Given Name
</th>
<th>
Display Name
<th>Display Name
</th>
<th>
Assigned Devices
<th>Assigned Devices
</th>
<th>
Jobs
<th>Jobs
</th>
</tr>
</thead>
@@ -30,7 +24,14 @@
{
<tr>
<td>
@Html.ActionLink(item.Id, MVC.User.Show(item.Id))
@if (Authorization.Has(Claims.User.Show))
{
@Html.ActionLink(item.Id, MVC.User.Show(item.Id))
}
else
{
@item.Id
}
</td>
<td>
@item.Surname