grafana/public/app/features/explore/utils
Karl Persson 2fd7031102
Access Control: Add fine-grained access control to explore (#35883)
* add fixed role for datasource read operations

* Add action for datasource explore

* add authorize middleware to explore index route

* add fgac support for explore navlink

* update hasAccessToExplore to check if accesscontrol is enable and evalute action if it is

* add getExploreRoles to evalute roles based onaccesscontrol, viewersCanEdit and default

* create function to evaluate permissions or using fallback if accesscontrol is disabled

* change hasAccess to prop and derive the value in mapStateToProps

* add test case to ensure buttons is not rendered when user does not have access

* Only hide return with changes button

* remove internal links if user does not have access to explorer

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2021-07-02 14:43:12 +02:00
..
decorators.test.ts Logs: Use GraphNG to plot log histograms (#34531) 2021-06-01 09:28:25 +02:00
decorators.ts Logs: Use GraphNG to plot log histograms (#34531) 2021-06-01 09:28:25 +02:00
links.test.ts Access Control: Add fine-grained access control to explore (#35883) 2021-07-02 14:43:12 +02:00
links.ts Access Control: Add fine-grained access control to explore (#35883) 2021-07-02 14:43:12 +02:00
LogsCrossFadeTransition.tsx Emotion: Upgrades emotion from 10 to 11 and updates all import paths (#32541) 2021-04-01 14:15:23 +02:00
set.test.ts Fix set utilities for explore section 2018-11-21 21:42:53 +08:00
set.ts Fix set utilities for explore section 2018-11-21 21:42:53 +08:00
time.ts Chore: Split Explore redux code into multiple sections (#28819) 2020-11-09 14:48:24 +01:00