-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename EditForumPosts to EditUsersForumPosts for clarity, add new Edi…
…tForumPosts permission, not used but will be used in future commits
- Loading branch information
Showing
5 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,7 +99,7 @@ | |
<timezone-convert asp-for="@comment.CreationTimeStamp" in-line="true" /> | ||
</div> | ||
</div> | ||
<div class="col" condition="User.Has(PermissionTo.EditForumPosts) || User.GetUserId() == comment.UserId"> | ||
<div class="col" condition="User.Has(PermissionTo.EditUsersForumPosts) || User.GetUserId() == comment.UserId"> | ||
<div class="float-end mb-1 mt-1"> | ||
<button type="button" class="btn btn-primary btn-sm" data-edit-btn data-comment-id="@comment.Id" id="[email protected]"> | ||
<i class="fa fa-pencil"></i> Edit | ||
|
@@ -108,7 +108,7 @@ | |
class="btn-sm" | ||
asp-href="/UserFiles/Index?handler=DeleteComment&[email protected]&[email protected]()" | ||
warning-message="Are you sure you want to delete this comment?" | ||
condition="User.Has(PermissionTo.EditForumPosts) || User.GetUserId() == comment.UserId"> | ||
condition="User.Has(PermissionTo.EditUsersForumPosts) || User.GetUserId() == comment.UserId"> | ||
<i class="fa fa-remove"></i> | ||
</delete-button> | ||
</div> | ||
|