Allow admins to delete comments as well. (#250)
This is a follow-up to #235
This commit is contained in:
parent
bc67379c26
commit
ef1ebfc491
1 changed files with 1 additions and 0 deletions
|
@ -204,6 +204,7 @@ function CommentMenuList(props: Props) {
|
||||||
{!disableRemove &&
|
{!disableRemove &&
|
||||||
activeChannelClaim &&
|
activeChannelClaim &&
|
||||||
(activeChannelIsModerator ||
|
(activeChannelIsModerator ||
|
||||||
|
activeChannelIsAdmin ||
|
||||||
activeChannelClaim.permanent_url === authorUri ||
|
activeChannelClaim.permanent_url === authorUri ||
|
||||||
activeChannelClaim.permanent_url === contentChannelPermanentUrl) && (
|
activeChannelClaim.permanent_url === contentChannelPermanentUrl) && (
|
||||||
<MenuItem className="comment__menu-option" onSelect={handleDeleteComment}>
|
<MenuItem className="comment__menu-option" onSelect={handleDeleteComment}>
|
||||||
|
|
Loading…
Reference in a new issue