From 2fc60c1cd39f8c48fa0df09fd448f2bff643ee1a Mon Sep 17 00:00:00 2001 From: Jonathan Weth <git@jonathanweth.de> Date: Mon, 20 Mar 2023 17:03:20 +0100 Subject: [PATCH] Add permission to main menu item --- CHANGELOG.rst | 7 +++++++ aleksis/apps/kort/frontend/index.js | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 6aab1cf..aa5e16f 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,13 @@ All notable changes to this project will be documented in this file. The format is based on `Keep a Changelog`_, and this project adheres to `Semantic Versioning`_. +Unreleased +---------- + +Fixed +~~~~~ + +* Menu item 'Documents' was always shown. `0.1`_ ------ diff --git a/aleksis/apps/kort/frontend/index.js b/aleksis/apps/kort/frontend/index.js index 534f76b..997acde 100644 --- a/aleksis/apps/kort/frontend/index.js +++ b/aleksis/apps/kort/frontend/index.js @@ -3,6 +3,7 @@ export default { inMenu: true, titleKey: "kort.menu_title", icon: "mdi-card-account-details-outline", + permission: "kort.view_menu_rule", }, children: [ { @@ -15,7 +16,6 @@ export default { icon: "mdi-card-multiple-outline", permission: "kort.view_cards_rule", }, - props: { byTheGreatnessOfTheAlmightyAleksolotlISwearIAmWorthyOfUsingTheLegacyBaseTemplate: true, }, -- GitLab