From a120357af8bcef00a292233d14e0c586e39f0b26 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 20 Sep 2022 23:15:39 -0400 Subject: [PATCH] Hiding create community button. Fixes #754 --- src/shared/components/app/navbar.tsx | 10 ++-------- src/shared/components/home/home.tsx | 4 +++- src/shared/utils.ts | 7 +++++++ 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/shared/components/app/navbar.tsx b/src/shared/components/app/navbar.tsx index 2408a76b..4e47daa2 100644 --- a/src/shared/components/app/navbar.tsx +++ b/src/shared/components/app/navbar.tsx @@ -21,6 +21,7 @@ import { UserService, WebSocketService } from "../../services"; import { amAdmin, auth, + canCreateCommunity, donateLemmyUrl, isBrowser, notifyComment, @@ -270,7 +271,7 @@ export class Navbar extends Component { {i18n.t("create_post")} - {this.canCreateCommunity && ( + {canCreateCommunity(this.props.siteRes) && (