PermissionNames constants
Replace magic strings in authorisation calls
This commit is contained in:
		| @ -6,7 +6,7 @@ | ||||
| <div class="row"> | ||||
|     @foreach (var p in pages) | ||||
|     { | ||||
|         if (UserSecurity.IsAuthorized(PageState.User, "View", p.Permissions)) | ||||
|         if (UserSecurity.IsAuthorized(PageState.User, PermissionNames.View, p.Permissions)) | ||||
|         { | ||||
|             string url = NavigateUrl(p.Path); | ||||
|             <div class="col-md-2 mx-auto text-center"> | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Pavel Vesely
					Pavel Vesely