grafana/public/app/core/services
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
..
__mocks__ Search: refactor tests to use react-testing-library (#27352) 2020-09-08 18:01:38 +03:00
echo FrontendMetrics: Adds new backend api that frontend can use to push frontend measurements and counters to prometheus (#32593) 2021-04-01 20:04:02 +02:00
alert_srv.ts Chore: Removes some unneeded console logging and changes logs to errors (#26235) 2020-07-10 15:07:04 +01:00
all.ts Routing NG: Replace Angular routing with react-router (#31463) 2021-03-10 18:03:36 +01:00
analytics.ts Routing NG: Replace Angular routing with react-router (#31463) 2021-03-10 18:03:36 +01:00
AngularLoader.ts Types: Adds type safety to appEvents (#19418) 2019-10-14 09:27:47 +01:00
backend_srv.ts Chore: Reduces strict errors (#33012) 2021-04-15 14:21:06 +02:00
context_srv.ts Access control: expose permissions to the frontend (#32954) 2021-04-16 16:02:16 +03:00
dynamic_directive_srv.ts Chore: Fixed no implicit any Typescript errors (#16799) 2019-04-28 09:58:12 +02:00
FetchQueue.test.ts Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
FetchQueue.ts Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
FetchQueueWorker.test.ts BackendSrv: Queues data source requests but passes through api requests (#26947) 2020-08-20 11:32:10 +02:00
FetchQueueWorker.ts Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
impression_srv.ts Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
keybindingSrv.ts Shortcuts: Fixes panel shortcuts so they always work (#32385) 2021-03-29 07:52:57 +02:00
ng_react.ts Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
popover_srv.ts Types: Adds type safety to appEvents (#19418) 2019-10-14 09:27:47 +01:00
PreferencesService.ts Themes: Switch theme without reload using global shortcut (#32180) 2021-03-22 08:48:53 +01:00
ResponseQueue.test.ts Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
ResponseQueue.ts Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
search_srv.ts Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
segment_srv.ts Chore: Reduces strict errors (#33012) 2021-04-15 14:21:06 +02:00
timer.ts Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
toggleTheme.ts Themes: Switch theme without reload using global shortcut (#32180) 2021-03-22 08:48:53 +01:00
util_srv.ts Routing NG: Replace Angular routing with react-router (#31463) 2021-03-10 18:03:36 +01:00
withFocusedPanelId.ts Shortcuts: Fixes panel shortcuts so they always work (#32385) 2021-03-29 07:52:57 +02:00