Prevent moving a k6 folder (#88884)
* iam-716 - prevent a folder move operation when the folder's uid or any of its parents uids begin with k6-app * fox folder move check and only list non-k6 folders to users * adding tests for moving * add a test for listing folders * fix the other tests * use method that adds folder parent --------- Co-authored-by: IevaVasiljeva <ieva.vasiljeva@grafana.com>
This commit is contained in:
co-authored by
IevaVasiljeva
parent
89a0bec208
commit
59a6a6513f
@@ -332,6 +332,7 @@ const (
|
||||
GlobalOrgID = 0
|
||||
NoOrgID = int64(-1)
|
||||
GeneralFolderUID = "general"
|
||||
K6FolderUID = "k6-app"
|
||||
RoleGrafanaAdmin = "Grafana Admin"
|
||||
|
||||
// Permission actions
|
||||
|
||||
Reference in New Issue
Block a user