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?
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").
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, 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.
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?
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.
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
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.
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
is working on a reply...