Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Deactivation of "visual settings" #6767


User avatar
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)
  • User Avatar
    0
    maliming created
    Support Team

    You only need to ignore the user's settings in your template, right?

  • User Avatar
    0
    FlexSolution created

    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.

  • User Avatar
    0
    ismcagdas created
    Support Team

    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.