Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v10.2.x] RBAC: Allow scoping access to root level dashboards #77608

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

grafana-delivery-bot[bot]
Copy link
Contributor

Backport 159bb3c from #76987


What is this feature?

Take into account dashboard listing permissions scoped to the root (folders:uid:general) when listing dashboards.

Why do we need this feature?

To allow scoping access to root level dashboards.

Who is this feature for?

Anyone

Which issue(s) does this PR fix?:

Fixes https://github.com/grafana/grafana-enterprise/issues/5920

Special notes for your reviewer:

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

* correctly check permissions to list dashboards on the root

* correctly display the access inherited from general folder for dashboards

* Update pkg/services/sqlstore/permissions/dashboard.go

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>

* Update dashboard_filter_no_subquery.go

---------

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
(cherry picked from commit 159bb3c)
@grafana-delivery-bot grafana-delivery-bot bot requested review from a team as code owners November 3, 2023 09:23
@grafana-delivery-bot grafana-delivery-bot bot requested review from vtorosyan and linoman and removed request for a team November 3, 2023 09:23
@grafana-delivery-bot grafana-delivery-bot bot added this to the 10.2.x milestone Nov 3, 2023
@grafana-delivery-bot grafana-delivery-bot bot requested review from papagian, undef1nd, yangkb09 and IevaVasiljeva and removed request for a team November 3, 2023 09:23
@IevaVasiljeva IevaVasiljeva merged commit 0cede69 into v10.2.x Nov 3, 2023
22 checks passed
@IevaVasiljeva IevaVasiljeva deleted the backport-76987-to-v10.2.x branch November 3, 2023 10:02
@aangelisc aangelisc modified the milestones: 10.2.x, 10.2.1 Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants