-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add support for disabling dashboard through appsettings.json
#162
Comments
Hi, Is this something that is available now, or will it be added to a future version? Thanks |
@abjerner not at the moment, no. Are you looking for controlling which user groups has access to the dashboard, or do you want to disable the dashboard for all users? I played around with this at some point, as I wanted to support also being able to set up the permissions via the app settings. I recall I had some problems finding the correct format, and I haven't worked on this for some time. But being able to disable the dashboard entirely should be fairly straight forward. I will likely push a new release later today, and I can see if I can include an option for this 😉 |
Hi, Yes, looking to control which user groups have access to the dashboard, ideally only show the 'Redirects' dashboard for administrators. But disabling entirely would be a good backup option that we could enable once we'd added our initial redirects. Cheers |
And this will now be possible in the next release: {
"Skybrud": {
"Redirects": {
"Dashboard": {
"Enabled": false
}
}
}
} I have another issue in the package that I need to look into, but hopefully I'll have Ideally it should also be possible to configure the permissions from appsettings.json, but I'll need some more time to look into that, so this will have to wait for another future release. |
Ok. That's great. Would it also be possible to disable the [Redirects] button which shows between [Content] and [i] on the top right, when editing a content node. Cheers |
The content app as in this screenshot? If so, it can already be disabled via {
"Skybrud": {
"Redirects": {
"ContentApp": {
"Enabled": false
}
}
}
} Or you can opt-in or opt-out of specific content or media types. Eg. here I've opted out for media in general, but opted in for images specifically (since they would otherwise be hit be the wildcard rule): {
"Skybrud": {
"Redirects": {
"ContentApp": {
"Enabled": true,
"Show": [
"-content/site",
"-content/subSite",
"-media/*",
"-media/vimeoVideo",
"+media/Image"
]
}
}
}
} Unfortunately this isn't documented at the moment, although it should be 😊 |
Awesome 👍 |
No description provided.
The text was updated successfully, but these errors were encountered: