RBAC: Add actionsets struct and write path (#86108)
* Add actionsets struct and failing test
* update from review
* review comments
* review comments update
* refactor: create interface
* actionset service
* fix tests
* move from wireoss to wire
* Apply suggestions from code review
remove unnecessary comments
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
* nil for the actionsetservice
* Revert "nil for the actionsetservice"
This reverts commit e3d3cc8171.
---------
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
This commit is contained in:
@@ -107,8 +107,9 @@ func TestBacktesting(t *testing.T) {
|
||||
require.Equalf(t, http.StatusForbidden, status, "Response: %s", body)
|
||||
})
|
||||
|
||||
asService := resourcepermissions.NewActionSetService()
|
||||
// access control permissions store
|
||||
permissionsStore := resourcepermissions.NewStore(env.SQLStore, featuremgmt.WithFeatures())
|
||||
permissionsStore := resourcepermissions.NewStore(env.SQLStore, featuremgmt.WithFeatures(), &asService)
|
||||
_, err := permissionsStore.SetUserResourcePermission(context.Background(),
|
||||
accesscontrol.GlobalOrgID,
|
||||
accesscontrol.User{ID: testUserId},
|
||||
|
||||
Reference in New Issue
Block a user