DashboardSettings: Prevent Dashboard permissions from linking to folder permissions when user does not have sufficient permissions (#44212)

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* add tests

* fix up

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: Alexandra Vargas <alexa1866@gmail.com>
Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>
This commit is contained in:
Josh Hunt
2022-01-19 15:27:33 +00:00
committed by GitHub
parent dc913f2311
commit 9f97f05fcc
9 changed files with 136 additions and 8 deletions

View File

@@ -17,6 +17,7 @@ export interface DashboardMeta {
canAdmin?: boolean;
url?: string;
folderId?: number;
folderUid?: string;
fromExplore?: boolean;
canMakeEditable?: boolean;
submenuEnabled?: boolean;

View File

@@ -20,10 +20,12 @@ export interface FolderState {
hasChanged: boolean;
version: number;
permissions: DashboardAcl[];
canViewFolderPermissions: boolean;
}
export interface FolderInfo {
id?: number;
title?: string;
url?: string;
canViewFolderPermissions?: boolean;
}