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
Dashboard: Loading dashboard settings resets folder id when user/team have admin access to dashboard, but not the folder #25771
Comments
@marefr so the question here is. Should the user have possibility to save the dashboard at all? Since he/she is a viewer within a team which has admin rights for a given dashboard. |
This scenario is a bit problematic, not sure if we can support this permission setup well without tricky hacks. |
I am a bit unsure if we should allow a save of a dashboard to a folder you only have view permissions for. |
yes, I'm actually concerned with this as well. Not sure how the permissions are designed. If it's team or the user permissions that take precedence in such scenario |
It's working from an HTTP API/backend perspective. It's definitely an edge case that you can have editor/admin access to a dashboard, but not the folder. However, clearly users are dependent on this feature. I don't understand why dashboard have to make changes to the dashboard model by resetting the folder id when opening the dashboard settings. |
It’s just complex to have a drop down with an option that your not allowed to select yourself |
For example the folder picker is designed to not show dashboards your now allowed to save to , so this scenario is a bit messy with the folder picker having a value that is not available to choose from |
But I think we can solve it |
What happened:
Entered dashboard settings, then saving dashboard returning 403 unauthorized.
What you expected to happen:
Successful save of dashboard.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
After investigation seems like loading dashboard settings resets the folder selection to empty/zero and by that the 403 unauthorized is returned since the dashboard is trying to be saved in the General folder.
Environment:
The text was updated successfully, but these errors were encountered: