diff --git a/CHANGELOG.rst b/CHANGELOG.rst index fe7a89aa0ed37c4d3b6bf684618a0f2f1c5ac001..8a13e31bbf097ea855f4ec49cd725af5f7eac046 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -9,6 +9,11 @@ and this project adheres to `Semantic Versioning`_. Unreleased ---------- +Fixed +~~~~~ + +* Add permission check to accept invitation menu point in order to hide it when this feature is disabled. + `3.0`_ - 2022-05-11 ------------------- diff --git a/aleksis/core/frontend/routes.js b/aleksis/core/frontend/routes.js index aa84f36c4aa9f634f081edb9338f8f264dc9c2fe..a69cff3eeb33eaf0117e62479c95ea6007fd7589 100644 --- a/aleksis/core/frontend/routes.js +++ b/aleksis/core/frontend/routes.js @@ -54,6 +54,7 @@ const routes = [ icon: "mdi-key-outline", titleKey: "accounts.invitation.accept_invitation.menu_title", validators: [notLoggedInValidator], + permission: "core.invite_enabled", }, }, { @@ -956,14 +957,6 @@ const routes = [ invalidate: "leave", }, }, - { - path: "/invitations/code/enter", - component: () => import("./components/LegacyBaseTemplate.vue"), - props: { - byTheGreatnessOfTheAlmightyAleksolotlISwearIAmWorthyOfUsingTheLegacyBaseTemplate: true, - }, - name: "core.enter_invitation_code", - }, { path: "/invitations/code/generate", component: () => import("./components/LegacyBaseTemplate.vue"),