From c495c1037ad2649543405186e551f5d4f1139ff3 Mon Sep 17 00:00:00 2001 From: Eric Mastro Date: Tue, 15 Jun 2021 09:46:58 +1000 Subject: [PATCH] fix(communities): hide edit category menu for non-admins Fixes: #2691. When not an admin, the menu for adding/removing/editing of channels inside of a category should not be visible. --- ui/app/AppLayouts/Chat/CommunityComponents/CategoryList.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/CategoryList.qml b/ui/app/AppLayouts/Chat/CommunityComponents/CategoryList.qml index 7c2f6478fd..6164e35ab8 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/CategoryList.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/CategoryList.qml @@ -72,7 +72,7 @@ Column { } StatusIconButton { - visible: hhandler.hovered + visible: hhandler.hovered && chatsModel.communities.activeCommunity.admin id: moreBtn icon.name: "more" width: 20