virtualmin / virtualmin-gpl

Virtualmin web hosting control panel for Webmin
https://www.virtualmin.com
GNU General Public License v3.0
316 stars 98 forks source link

Manage PHP Configuration - 2 Tier Permissions #754

Open shoulders opened 8 months ago

shoulders commented 8 months ago
SYSTEM INFORMATION
OS type and version Ubuntu Linux 22.04.3
Webmin version 2.105
Usermin version 2.005
Virtualmin version 7.9.0  
Theme version 21.09.5
Package updates All installed packages are up to date

Background

You can enable or disable the managing of php options using

(Account Plan / Edit Owner Limits) --> Allowed capabilities and features --> Can edit PHP and website options

There is a separate permission for allowing clients to change their PHP version

The Issue

Can edit PHP and website options is to broad of an area to control with one permission.

Some clients will need access to alter Resource Limits but not direct access to the php.ini or the ability to change the disabled functions.

The Solution

Break down Can edit PHP and website options permission into

PHP Basic Settings should have image

PHP Advanced Settings image I have asked for disable_fuctions to be added to the GUI here #753

shoulders commented 8 months ago

Update

When I login as a user, the Edit Configuration Manually is already hidden. I don't think there is a setting for this so there might already be a 2 Tier permission in place in regards to PHP.

jcameron commented 8 months ago

Yes in theory we could do this ... I'll look into it.