misc: allow admins to create communities

This commit is contained in:
Xyphyn committed 2023-08-13 14:40:22 -07:00
1 parent 646199bc51
commit bb0f208584
1 file changed
+4 -2
+4 -2
View File
@@ -158,8 +158,10 @@
<MenuButton <MenuButton
link link
href="/create/community" href="/create/community"
disabled={$profile?.jwt == undefined || disabled={!$profile?.jwt ||
$site?.site_view.local_site.community_creation_admin_only} !$profile?.user ||
($site?.site_view.local_site.community_creation_admin_only &&
!isAdmin($profile.user))}
> >
<Icon src={Newspaper} mini width={16} /> <Icon src={Newspaper} mini width={16} />
Community Community