From 70e9fa9c2d9b106d84daa562ab86bc54f07f0c22 Mon Sep 17 00:00:00 2001 From: magicfelix <felix@felix-zauberer.de> Date: Fri, 11 Jun 2021 23:51:03 +0200 Subject: [PATCH] List public dashboard in navigation --- CHANGELOG.rst | 1 + aleksis/core/menus.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index a644a2386..73289ef19 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -15,6 +15,7 @@ Changed * Add verbose names for all preference sections. * Add verbose names for all openid connect scopes and show them in grant view. +* Include public dashboard in navigation Fixed ~~~~~ diff --git a/aleksis/core/menus.py b/aleksis/core/menus.py index 04cfb5689..b368a6c70 100644 --- a/aleksis/core/menus.py +++ b/aleksis/core/menus.py @@ -24,7 +24,9 @@ MENUS = { "name": _("Dashboard"), "url": "index", "icon": "home", - "validators": ["menu_generator.validators.is_authenticated"], + "validators": [ + ("aleksis.core.util.predicates.permission_validator", "core.view_dashboard_rule") + ], }, { "name": _("Notifications"), -- GitLab