grafana/pkg/api/dtos
Alexander Zobnin 8b843eb0a6
Access control: expose permissions to the frontend (#32954)
* Expose user permissions to the frontend

* Do not include empty scope

* Extend ContextSrv with hasPermission() method

* Add access control types

* Fix type error (make permissions optional)

* Fallback if access control disabled

* Move UserPermission to types

* Simplify hasPermission()
2021-04-16 16:02:16 +03:00
..
acl.go Backend: Rename variables for style conformance (#29097) 2020-11-17 17:09:14 +01:00
alerting_test.go Fix misspell issues 2018-09-21 11:54:36 +02:00
alerting.go Chore: Remove dead code (#28664) 2020-11-05 11:00:00 +01:00
annotations.go Annotations: use a single row to represent a region (#17673) 2019-08-16 10:49:30 +02:00
apikey.go API: return resource ID for auth key creation, folder permissions update and user invite complete endpoints (#27419) 2020-09-07 17:06:11 +02:00
dashboard.go Provisioning: Show file path of provisioning file in save/delete dialogs (#16706) 2019-04-30 13:32:18 +02:00
datasource.go Data source list: Use Card component (#31326) 2021-02-22 14:02:10 +02:00
folder.go folders: use new folder service in folder api routes 2018-02-20 13:57:32 +01:00
index.go Theming: Support for runtime theme switching and hooks for custom themes (#31301) 2021-02-20 09:02:06 +01:00
invite.go chore: avoid alias for models in plugins (#22483) 2020-02-28 12:51:21 +01:00
live.go Live: http publish, refactor live interfaces (#32317) 2021-03-30 13:23:29 +03:00
models_test.go Chore: Remove gotest.tools dependency (#31391) 2021-02-22 11:53:15 +01:00
models.go Access control: expose permissions to the frontend (#32954) 2021-04-16 16:02:16 +03:00
org.go feat(organization): added update org address to http api and to org details settings view, closes #2672 2015-09-08 14:22:44 +02:00
playlist.go Added playlist controls to new react DashNav 2019-02-04 21:08:30 +01:00
plugins.go PluginManager: Make Plugins, Renderer and DataSources non-global (#31866) 2021-03-17 16:06:10 +01:00
prefs.go Make golint happier 2018-03-22 22:38:44 +01:00
short_url.go Dashboard: Allow shortlink generation (#27409) 2020-10-14 12:48:48 +02:00
user_token.go Feature: Parse user agent string in user auth token api response (#16… (#17504) 2019-06-11 14:12:52 +02:00
user.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00