misc: allow admins to create communities
This commit is contained in:
1 parent
646199bc51
commit
bb0f208584
1 file changed
+4
-2
@@ -158,8 +158,10 @@
|
||||
<MenuButton
|
||||
link
|
||||
href="/create/community"
|
||||
disabled={$profile?.jwt == undefined ||
|
||||
$site?.site_view.local_site.community_creation_admin_only}
|
||||
disabled={!$profile?.jwt ||
|
||||
!$profile?.user ||
|
||||
($site?.site_view.local_site.community_creation_admin_only &&
|
||||
!isAdmin($profile.user))}
|
||||
>
|
||||
<Icon src={Newspaper} mini width={16} />
|
||||
Community
|
||||
|
||||
Reference in new issue
Block a user