letsencrypt-plesk icon indicating copy to clipboard operation
letsencrypt-plesk copied to clipboard

Hide Let's Encrypt Icon for non admin users

Open ghost opened this issue 9 years ago • 5 comments

As non-admin users get a Permission Denied error when clicking on the Let's Encrypt icons in Websites & Domains, why do they get to see it at all? Why not just hide the icon for all except admin users?

ghost avatar Sep 20 '16 09:09 ghost

Seems the correct steps are:

  1. Go to Users and create user with granted permission "Create and manage sites"
  2. Login as created user
  3. Click "Let's Encrypt" in domain area

Actual result: Permission denied

Expected result: Allow user to manage Let's Encrypt certificate for this domain or hide the button in domain area

@devanes Do I correctly reproduced the bug?

vlikhtanskiy avatar Sep 20 '16 10:09 vlikhtanskiy

@vlikhtanskiy Apart from the fact that in my case the user already existed, this is correct.

The same applies to subdomains as well.

devanes avatar Sep 20 '16 10:09 devanes

Ive managed to remove Lets Encrypt button from customer interfaces by renaming the files in: /opt/psa/admin/plib/modules/letsencrypt/hooks

Good luck!

brunokhaas avatar Oct 17 '16 13:10 brunokhaas

For our linux servers it was /usr/local/psa/admin/plib/modules/letsencrypt/hooks/CustomButtons.php that needed to be renamed. Customer's Let's Encrypt settings can than still be reached by visiting https://<CP_URL>:8443/modules/letsencrypt/index.php/index/install/return/domain?dom_id=<DOM_ID>&site_id=<SITE_ID> (substitute the <CP_URL>, <DOM_ID> and <SITE_ID> for real values, naturally)

lightdot avatar Dec 27 '17 08:12 lightdot

Thanks for the tip for hiding the custom button. Does it reappear on upgrade?

Another tip: you don't need to visit the URL manually, you can just visit Let's Encrypt under Extensions and choose the relevant domain from there.

BeecherNetworks avatar Nov 20 '18 14:11 BeecherNetworks