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
|
<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
|
||||||
|
|||||||
Reference in new issue
Block a user