Custom dashboard access rules for packages #10533
patrickdemooij9
started this conversation in
Features and ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently when you create a new dashboard, you'll have to specify the access rules for it. This is fine if you are creating a dashboard for your own website as you know exactly what the requirements are.
However, this isn't exactly true for packages that have a custom dashboard. For example, let's take my package SimpleRedirects. This package has a custom dashboard displaying all your redirects. By default, there are no access rules setup as I don't know what the person using the plugin would want there. However, there is also no easy way for them to update it. If they only want people of the group Administrators to use it, they would have to disable my dashboard, create a copy of mine but with the correct access rules.
This is not very user friendly, especially if you download it from the our.umbraco.org website or don't have easy access to the code.
What I propose are two solutions:
Remove the access rules from the dashboard class and instead incorporate it into the user group management section. This would also make it easier for users to remove the Umbraco redirect url management or other Umbraco dashboards as they please. I've made a small mock of how I think it might work:
![image](https://user-images.githubusercontent.com/11466511/123408682-902f2780-d5ad-11eb-8075-d9f621d187ec.png)
If number one isn't feasible, at least give programmers a good way to override the access rules setup in a dashboard. I would to change the access rule of a dashboard in my composer, so that I can set it up for my own projects requirements.
Would love to hear any more ideas about this!
Beta Was this translation helpful? Give feedback.
All reactions