Skip to content

Commit

Permalink
Fix the Post article privelege
Browse files Browse the repository at this point in the history
  • Loading branch information
shmaisanimostafa committed Aug 11, 2024
1 parent 256c8f3 commit e1f2809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Web App MVC/Views/Articles/Index2.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@inject IAuthorizationService AuthorizationService

@{
var authorizationResult = User.HasClaim(c => c.Type == "Permission" && c.Value == "Edites Article");
var authorizationResult = User.HasClaim(c => c.Type == "Permission" && c.Value == "Post Article");
var currentUser = await userManager.GetUserAsync(User);
ViewData["Title"] = "Articles";

Expand Down

0 comments on commit e1f2809

Please sign in to comment.