Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mattias 2 posts 72 karma points
    Oct 05, 2016 @ 15:17
    Mattias
    0

    Disable template editing in production environment

    For me it's unworldly to be able to modify views, scripts and styles directly in a live environment. If one is able to modify these parts so easily, only using the interface—how can one ever know what code is really running in any given environment?

    Is there a way to turn this functionality off in a live environment?

  • Rhys Hamilton 140 posts 942 karma points
    Oct 05, 2016 @ 15:47
    Rhys Hamilton
    0

    Hi Mattias,

    Your best course of action could be to create a new User (giving them the Administrator role) and check the Sections you wish to be made available to them - which in this case could be the "Content" and "Media" sections.

    In doing so, the "Settings" icon will no longer be visible in the back-end, thus preventing the modification of the folders contained within (such as "Templates" and "Scripts").

    Hopefully this solves your problem.

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Oct 05, 2016 @ 15:58
    Alex Skrypnyk
    0

    Hi Mattias,

    1) You can hide Settings section for some Users in Umbraco backend. Go to the users section, select user what you want and ucheck sections what you want to disable.

    2) You can disable these files editing at some machine, folders settings on the server.

    Thanks,

    Alex

  • Mattias 2 posts 72 karma points
    Oct 05, 2016 @ 16:05
    Mattias
    0

    Hi Alex,

    Thanks, but this once again requires work i the Umbraco backend. This would have to be done for all potential customers and it would still be available for the main administrator.

    I'm looking for a more code-focused approach. A concept that Umbraco by the way seems to lack altogether.

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Oct 05, 2016 @ 20:26
    Alex Skrypnyk
    0

    Hi Mattias,

    Yes, there are no such package or functionality as I know.

    If you will find something it would be great to share with us.

    Have a nice evening.

    Thanks,

    Alex

Please Sign in or register to post replies

Write your reply to:

Draft