Page 1 of 1

Allow only admin to activate SSL support

Posted: Sat Feb 24, 2018 6:47 pm
by Sack_of_Potatoes
Hello,

I am using WHMCS for my clients and I have an option when checking out, to activate SSL Support.

I am using automatic configuration to setup their service. I am going to research later if I can mess with the Vesta.php script in order to automatically setup SSL support for me.

My main concern is, I don't want a client to be able to login to their VestaCP control panel and mess with SSL options. Is there a way to disable this for non-admins, and only allow it for an admin?

Thanks!

Re: Allow only admin to activate SSL support

Posted: Wed Feb 28, 2018 10:27 am
by skurudo
Make changes in user template give you what you want:
/usr/local/vesta/web/templates/user/edit_web.html
and search block with this code:

Code: Select all

 <label><input type="checkbox" size="20" class="vst-checkbox" name="v_ssl" <?php if ($v_ssl == 'yes') 
or search for "ssl"