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

Add support for disabling dashboard through appsettings.json #162

Closed
abjerner opened this issue Nov 5, 2022 · 9 comments
Closed

Add support for disabling dashboard through appsettings.json #162

abjerner opened this issue Nov 5, 2022 · 9 comments
Assignees
Labels
category/dx Developer experience category/settings release/4.0.9 type/feature New feature or request umbraco/v10 Issues and tasks related to Umbraco 10.

Comments

@abjerner
Copy link
Member

abjerner commented Nov 5, 2022

No description provided.

@abjerner abjerner added type/feature New feature or request umbraco/v10 Issues and tasks related to Umbraco 10. category/dx Developer experience category/settings labels Nov 5, 2022
@abjerner abjerner self-assigned this Nov 5, 2022
@richard-arkom
Copy link

Hi,

Is this something that is available now, or will it be added to a future version?

Thanks

@abjerner
Copy link
Member Author

abjerner commented May 9, 2023

@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 😉

@richard-arkom
Copy link

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

@abjerner
Copy link
Member Author

abjerner commented May 9, 2023

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 v4.0.9 out later today.

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.

@richard-arkom
Copy link

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

@abjerner
Copy link
Member Author

abjerner commented May 9, 2023

The content app as in this screenshot?

image

If so, it can already be disabled via appsettings.json:

{
  "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 😊

@richard-arkom
Copy link

Awesome 👍

@abjerner
Copy link
Member Author

Closing the issue as this was implemented in v4.0.9.

Commit: a4b2e3c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category/dx Developer experience category/settings release/4.0.9 type/feature New feature or request umbraco/v10 Issues and tasks related to Umbraco 10.
Projects
None yet
Development

No branches or pull requests

2 participants