0
FlexSolution created
Is there a way to disable visual settings for all users? I would like to activate a template and this should be valid for all users without the possibility to change it.
3 Answer(s)
-
0
You only need to ignore the user's settings in your template, right?
-
0
I don't think it's a good solution to hide something in the view. We have a concept here that works through an API so anything that is locked should not work through the API. If I only disable it in the template it is still possible to change it through the API.
-
0
Hi @FlexSolution
Regular users only see the link of visual settings page on their profile menu items.
- First, you need to remove this item from your cshtml/html code.
- You need to add [AbpAuthorize(AppPermissions.Pages_Administration_UiCustomization)] attribute to your UiCustomizationController.cs (For ASp.NET Core & JQuery) or UiCustomizationSettingsAppService.cs class (For ASP.NET Core & Angular version).
- Also, login as host user, go to settings page and disable quick theme selection on "other settings" tab.