AuthZ service: Take action sets into account when checking folder create permissions (#98751)

take action sets into account when checking folder create permissions
This commit is contained in:
Ieva
2025-01-14 08:33:42 +00:00
committed by GitHub
parent 05ea05d64e
commit 9b34a56d7c
20 changed files with 103 additions and 30 deletions
+10
View File
@@ -105,6 +105,16 @@ func TestIdentityQueries(t *testing.T) {
Role: "Viewer",
}),
},
{
Name: "With_action_sets",
Data: getPermissions(&PermissionsQuery{
UserID: 1,
OrgID: 1,
Action: "folders:create",
ActionSets: []string{"folders:edit", "folders:admin"},
Role: "Viewer",
}),
},
},
sqlFolders: {
{