grafana/pkg/services/dashboards
Karl Persson c4a75f9eb3
RBAC: Add scope resolvers for dashboards (#50110)
* Inject access control into dashboard service

* Add function to parse id scopes

* Add dashboard as return value

* Update mock

* Return only err to keep service interface

* Add scope resolvers for dashboard id scopes

* Add function to parse uid scopes

* Add dashboard uid scope resolver

* Register scope resolvers for dashboards

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2022-06-07 11:02:20 +02:00
..
database RBAC: Add scope resolvers for dashboards (#50110) 2022-06-07 11:02:20 +02:00
service RBAC: Add scope resolvers for dashboards (#50110) 2022-06-07 11:02:20 +02:00
accesscontrol_test.go RBAC: Add scope resolvers for dashboards (#50110) 2022-06-07 11:02:20 +02:00
accesscontrol.go RBAC: Add scope resolvers for dashboards (#50110) 2022-06-07 11:02:20 +02:00
dashboard_provisioning_mock.go add isPublic to dashboard (#48012) 2022-05-17 14:11:55 -08:00
dashboard_service_mock.go public dashboards: insert default public dashboard config into database on save (#49131) 2022-06-02 18:27:23 -08:00
dashboard.go RBAC: Add scope resolvers for dashboards (#50110) 2022-06-07 11:02:20 +02:00
folder_service_mock.go add isPublic to dashboard (#48012) 2022-05-17 14:11:55 -08:00
folder_store_mock.go add isPublic to dashboard (#48012) 2022-05-17 14:11:55 -08:00
folder.go Dashboards: Refactor service to make it injectable by wire (#44588) 2022-02-16 14:15:44 +01:00
models.go public dashboards: insert default public dashboard config into database on save (#49131) 2022-06-02 18:27:23 -08:00
store_mock.go RBAC: Add scope resolvers for dashboards (#50110) 2022-06-07 11:02:20 +02:00