Skip to content

Commit b1b2ac5

Browse files
TD-5916: Catalogue access not working
1 parent 0ebb09b commit b1b2ac5

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

LearningHub.Nhs.WebUI/Views/Catalogue/Index.cshtml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,15 @@
99
ViewData["Title"] = "Catalogue";
1010

1111

12-
bool CanManage()
13-
{
14-
return IsInRole(RoleEnum.LocalAdmin);
15-
}
12+
bool CanManage()
13+
{
14+
return IsInRole(RoleEnum.LocalAdmin);
15+
}
1616

17-
bool Unlocked()
18-
{
19-
return IsInRole(RoleEnum.LocalAdmin) || IsInRole(RoleEnum.Editor) || IsInRole(RoleEnum.Reader) ;
20-
//// || this.User.IsInRole("Administrator")
21-
}
17+
bool Unlocked()
18+
{
19+
return IsInRole(RoleEnum.LocalAdmin) || IsInRole(RoleEnum.Editor) || IsInRole(RoleEnum.Reader) || this.User.IsInRole("Administrator");
20+
}
2221

2322
bool IsInRole(RoleEnum role)
2423
{

0 commit comments

Comments
 (0)