mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 00:25:46 -06:00
RBAC: Do not search for parents of the root folder (#67746)
do not search for parents of the general folder
This commit is contained in:
parent
9812ad2cb2
commit
b1382ac48e
@ -196,6 +196,9 @@ func resolveDashboardScope(ctx context.Context, folderDB folder.FolderStore, org
|
||||
}
|
||||
|
||||
func GetInheritedScopes(ctx context.Context, orgID int64, folderUID string, folderSvc folder.Service) ([]string, error) {
|
||||
if folderUID == ac.GeneralFolderUID {
|
||||
return nil, nil
|
||||
}
|
||||
ancestors, err := folderSvc.GetParents(ctx, folder.GetParentsQuery{
|
||||
UID: folderUID,
|
||||
OrgID: orgID,
|
||||
|
Loading…
Reference in New Issue
Block a user