Page 1 of 1

No backend template in gui for users

Posted: Sat May 11, 2019 6:58 pm
by peshte
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?

Re: No backend template in gui for users

Posted: Thu Jun 20, 2019 12:11 pm
by skamasle
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 )

Re: No backend template in gui for users

Posted: Sun Aug 18, 2019 7:17 pm
by peshte
skamasle wrote:
Thu Jun 20, 2019 12:11 pm
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 )
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.

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

Posted: Fri Aug 30, 2019 10:08 am
by skamasle
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

Posted: Mon Sep 02, 2019 3:44 pm
by Emma32
peshte wrote:
Sat May 11, 2019 6:58 pm
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.

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?