mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
@@ -17,6 +17,7 @@ export interface DashboardMeta {
|
||||
canAdmin?: boolean;
|
||||
url?: string;
|
||||
folderId?: number;
|
||||
folderUid?: string;
|
||||
fromExplore?: boolean;
|
||||
canMakeEditable?: boolean;
|
||||
submenuEnabled?: boolean;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user