Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section Modification & Patches
  • Search

No backend template in gui for users

Section with modification and patches for Vesta
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
peshte
Posts: 7
Joined: Sat Jun 07, 2014 10:17 am

No backend template in gui for users
  • Quote

Post by peshte » 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.

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?
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: No backend template in gui for users
  • Quote

Post by skamasle » 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 )
Top

peshte
Posts: 7
Joined: Sat Jun 07, 2014 10:17 am

Re: No backend template in gui for users
  • Quote

Post by peshte » Sun Aug 18, 2019 7:17 pm

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.
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: No backend template in gui for users
  • Quote

Post by skamasle » Fri Aug 30, 2019 10:08 am

There are instructions in github, you can enable templates for users, just copy some lines of code.
Top

Emma32
Posts: 2
Joined: Thu Jul 04, 2019 2:50 pm

Os: Debian 9x
Web: apache
Re: No backend template in gui for users
  • Quote

Post by Emma32 » Mon Sep 02, 2019 3:44 pm

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?
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “Modification & Patches”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password