From: Dessalines Date: Sat, 24 Apr 2021 03:55:51 +0000 (-0400) Subject: Adding only admins can create communities. Fixes #268 X-Git-Url: http://these/git/%22https:/image.com/static/bundle.js?a=commitdiff_plain;h=a93c7d93eeae92609d8631ff1831f57e99b24fc0;p=lemmy-ui.git Adding only admins can create communities. Fixes #268 --- 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 && ( + + )}