Allow admins to delete comments as well. (#250)

This is a follow-up to #235
This commit is contained in:
infinite-persistence 2021-11-09 22:47:49 +08:00 committed by GitHub
parent bc67379c26
commit ef1ebfc491
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}>