Fixed bug where delete functionality is given to non-admin members.
This commit is contained in:
parent
fd1b040185
commit
5fe2a470a9
@ -37,7 +37,8 @@
|
|||||||
columns.Bound(l => l.PendingAIOwners).Title("Action Item Owners");
|
columns.Bound(l => l.PendingAIOwners).Title("Action Item Owners");
|
||||||
columns.Bound(l => l.D8DueDate).Format("{0:MM/dd/yy}");
|
columns.Bound(l => l.D8DueDate).Format("{0:MM/dd/yy}");
|
||||||
columns.Bound(l => l.ClosedDate).Format("{0:MM/dd/yy}");
|
columns.Bound(l => l.ClosedDate).Format("{0:MM/dd/yy}");
|
||||||
columns.Template(t => { }).HeaderTemplate("").ClientTemplate(@"<a href='javascript: void(0)' class='abutton delete' onclick='deleteRowCA(this)' title='button delete'>button delete</a>");
|
if ((bool)Session[GlobalVars.IS_ADMIN])
|
||||||
|
columns.Template(t => { }).HeaderTemplate("").ClientTemplate(@"<a href='javascript: void(0)' class='abutton delete' onclick='deleteRowCA(this)' title='button delete'>button delete</a>");
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user