diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 740bc057dc96c037cca2f2327933e210b9e0eaec..df3ff8a0c5e8dbf05f2f30e457777b841991e7eb 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -13,6 +13,7 @@ Fixed ~~~~~ * In some cases, some items in the sidenav menu were not shown due to its height being higher than the visible page area. +* 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"),