mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-22 20:31:19 +00:00
parent
70003407a7
commit
809fc05cb3
1 changed files with 5 additions and 0 deletions
|
@ -26,6 +26,11 @@ pub async fn distinguish_comment(
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
// Verify that only the creator can distinguish
|
||||||
|
if local_user_view.person.id != orig_comment.creator.id {
|
||||||
|
Err(LemmyErrorType::NoCommentEditAllowed)?
|
||||||
|
}
|
||||||
|
|
||||||
// Verify that only a mod or admin can distinguish a comment
|
// Verify that only a mod or admin can distinguish a comment
|
||||||
check_community_mod_action(
|
check_community_mod_action(
|
||||||
&local_user_view.person,
|
&local_user_view.person,
|
||||||
|
|
Loading…
Reference in a new issue