diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 5edb5daf763038840e0242bfe1c86006c5eec721..9e11c45383be1ea9da41f5df1d624d4dcf4cc29c 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -13,6 +13,7 @@ Fixed ~~~~~ * The search bar in the sidenav menu is shown even though the user has no permission to see it. +* 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"),