Improve Dashboard management permissions for admin users

Created on 9 May 2023, almost 2 years ago
Updated 10 January 2024, over 1 year ago

Problem/Motivation

This is a followup from ✨ Show dashboards as local tasks Fixed .
As noticed there, All the available dashboards, even the disabled ones are visible at /admin/dashboard for users with "administer dashboard" permission.

This might not be the ideal solution for those users, given that noise introduced in the dashboard page could make it useless.

Steps to reproduce

Create several dashboards, some of them disabled.
Create a role with "Administer dashboard" permission and one user with that role.
Login and see how /admin/dashboard shows all the dashboards, even those that are disabled or unrelated to the user role.

Proposed resolution

Show in /admin/dashboard only those dashboards enabled and the user has explicit access through the dashboard specific permission.
Create a "Preview" local task when editing the dashboard, so users that manage the dasboard can preview the final result.

Remaining tasks

User interface changes

New "Preview" Local Task added to the Dashboard Management section.

Github PR: https://github.com/penyaskito/dashboard-initiative/pull/18

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain plopesc Valladolid

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024