diff --git a/src/components/spaces/roles/utils.tsx b/src/components/spaces/roles/utils.tsx index 19f5c4907..0153d5943 100644 --- a/src/components/spaces/roles/utils.tsx +++ b/src/components/spaces/roles/utils.tsx @@ -28,10 +28,12 @@ export const useCheckCanEditAndHideSpacePermission = ({ post: { struct }, space } const canHidePost = - (isMyPost && checkSpacePermission(hideOwn)) || checkSpacePermission('HideAnyPost') + (isMyPost && checkSpacePermission(hideOwn)) || + (!isComment && checkSpacePermission('HideAnyPost')) const canEditPost = - (isMyPost && checkSpacePermission(updateOwn)) || checkSpacePermission('UpdateAnyPost') + (isMyPost && checkSpacePermission(updateOwn)) || + (!isComment && checkSpacePermission('UpdateAnyPost')) const canMovePost = isMyPost && !isComment