grafana/pkg/services/accesscontrol
Jack Westbrook cdcccfcc53
Plugins: Fix catalog permissions for org and server admins (#37504)
* simplify toggle + add link to server admin

* feat(catalog): org admins can configure plugin apps, cannot install/uninstall plugins

* fix(catalog): dont show buttons if user doesn't have install permissions

* feat(catalog): cater for accessing catalog via /plugins and /admin/plugins

* feat(catalog): use location for list links and match.url to define breadcrumb links

* test(catalog): mock isGrafanaAdmin for PluginDetails tests

* test(catalog): preserve default bootdata in PluginDetails mock

* refactor(catalog): move orgAdmin check out of state and make easier to reason with

Co-authored-by: Will Browne <will.browne@grafana.com>
2021-08-04 11:49:05 +02:00
..
evaluator Access Control: Add histograms for evaluator and permissions checks (#34026) 2021-05-17 13:52:16 +02:00
middleware Access control: Attach ID to error message (#33472) 2021-05-12 23:00:27 +02:00
ossaccesscontrol Revert "AccessControl: Implement a way to register fixed roles (#35641)" (#37397) 2021-07-30 13:58:49 +02:00
accesscontrol.go Revert "AccessControl: Implement a way to register fixed roles (#35641)" (#37397) 2021-07-30 13:58:49 +02:00
models.go Plugins: Fix catalog permissions for org and server admins (#37504) 2021-08-04 11:49:05 +02:00
roles_test.go Revert "AccessControl: Implement a way to register fixed roles (#35641)" (#37397) 2021-07-30 13:58:49 +02:00
roles.go Revert "AccessControl: Implement a way to register fixed roles (#35641)" (#37397) 2021-07-30 13:58:49 +02:00