feat: disable community creation on sites with it disabled

This commit is contained in:
Xyphyn committed 2023-08-13 14:32:45 -07:00
1 parent 8484ff5ed7
commit 8192239dc3
3 files changed
+18 -12

No files matched your search

+2 -1
View File
@@ -157,7 +157,8 @@
<MenuButton
link
href="/create/community"
disabled={$profile?.jwt == undefined}
disabled={$profile?.jwt == undefined ||
$site?.site_view.local_site.community_creation_admin_only}
>
<Icon src={Newspaper} mini width={16} />
Community