From a93c7d93eeae92609d8631ff1831f57e99b24fc0 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 23 Apr 2021 23:55:51 -0400 Subject: [PATCH] Adding only admins can create communities. Fixes #268 --- lemmy-translations | 2 +- package.json | 2 +- src/shared/components/navbar.tsx | 26 +++++++++++++++++--------- src/shared/components/site-form.tsx | 29 +++++++++++++++++++++++++++++ yarn.lock | 8 ++++---- 5 files changed, 52 insertions(+), 15 deletions(-) diff --git a/lemmy-translations b/lemmy-translations index ef6c991..0cf2ad8 160000 --- a/lemmy-translations +++ b/lemmy-translations @@ -1 +1 @@ -Subproject commit ef6c991e345a880d98b165508f28793fef3f922a +Subproject commit 0cf2ad832d07d6c0232b3c9c1958d5572303410e diff --git a/package.json b/package.json index 0153a92..25ce700 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "eslint-plugin-prettier": "^3.3.1", "husky": "^6.0.0", "iso-639-1": "^2.1.9", - "lemmy-js-client": "0.11.0-rc.11", + "lemmy-js-client": "0.11.0-rc.12", "lint-staged": "^10.5.4", "mini-css-extract-plugin": "^1.4.1", "node-fetch": "^2.6.1", diff --git a/src/shared/components/navbar.tsx b/src/shared/components/navbar.tsx index ff0f0ba..31f4545 100644 --- a/src/shared/components/navbar.tsx +++ b/src/shared/components/navbar.tsx @@ -247,15 +247,17 @@ export class Navbar extends Component { {i18n.t("create_post")} - + {this.canCreateCommunity && ( + + )}