We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
No backend template in gui for users
No backend template in gui for users
Hi,
On my server, I've created a template for laravel apps, but I've noticed that for regular users, the "web template" section is not visible
https://pasteboard.co/Ief7rGo.png
When I log in from admin account to the user account, I can see that section and it works.
I've dug in the VestaCP's code and saw that the HTML template for the users doesn't have the code for that part, and in PHP is hardcoded that only admin user can save that:
https://pasteboard.co/Ief7WXk.png
Is there a reason for that?
On my server, I've created a template for laravel apps, but I've noticed that for regular users, the "web template" section is not visible
https://pasteboard.co/Ief7rGo.png
When I log in from admin account to the user account, I can see that section and it works.
I've dug in the VestaCP's code and saw that the HTML template for the users doesn't have the code for that part, and in PHP is hardcoded that only admin user can save that:
https://pasteboard.co/Ief7WXk.png
Is there a reason for that?
Re: No backend template in gui for users
Not remember why is configured in that way, but in gitgub you can find a discus about this, also there are some fix, you copy part of code of admin template in users template should work
I think this if for some security reason, if user can change they template, they may can assing one wit out security (open base dir )
I think this if for some security reason, if user can change they template, they may can assing one wit out security (open base dir )
Re: No backend template in gui for users
Yes, the user can select a template without security, but those templates are created/managed by the root/admin user, so the users cannot create a template without security. If that happens, it is because of the admin's fault.skamasle wrote: ↑Thu Jun 20, 2019 12:11 pmNot remember why is configured in that way, but in gitgub you can find a discus about this, also there are some fix, you copy part of code of admin template in users template should work
I think this if for some security reason, if user can change they template, they may can assing one wit out security (open base dir )
However, by mistake, I've created some broken templates and when a user choose that template, the nginx failed to start.
Re: No backend template in gui for users
There are instructions in github, you can enable templates for users, just copy some lines of code.
Re: No backend template in gui for users
peshte wrote: ↑Sat May 11, 2019 6:58 pmHi,
On my server, I've created a template for laravel apps, but I've noticed that for regular users, the "web template" section is not visible
https://pasteboard.co/Ief7rGo.png
When I log in from admin account to the user account, I can see that section and it works.
locationtunisieborddemer
I've dug in the VestaCP's code and saw that the HTML template for the users doesn't have the code for that part, and in PHP is hardcoded that only admin user can save that:
https://pasteboard.co/Ief7WXk.png
Is there a reason for that?