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

Copy widget to dashboard: filter dashboards by permissions #20089

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

janheise
Copy link
Contributor

@janheise janheise commented Aug 5, 2024

Description

Prior to this change, the list of dashboards in the copy-to dialog for a widget contained all dashboards. Now only those dashboards are listed that the user actually has permissions to change.

fixes #7331

Motivation and Context

How Has This Been Tested?

manually tested by sharing dashboard between users and logging in/opening the copy dialog

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

@linuspahl linuspahl force-pushed the fix-copy-to-dashboard-only-list-allowed-dashboards branch from 1861e95 to 520c016 Compare August 16, 2024 07:32
Copy link
Contributor

@linuspahl linuspahl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this PR and it worked as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Filter list of dashboards to copy widgets to
2 participants