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:
@@ -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: {
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user