Account Plan settings should be read from the plan and not copied

Clarification

I think where the confusion was coming from was the following:

  • The tooltips are not correct, they go on about setting default values where they should not refer to defaults as this is a template. I will try and rewrite these to make clearer.
  • All of the settings defined in the ‘Account Plan’ are pushed to the ‘Edit Owner Limits’ but the 2 pages of settings do not match, they are laid put different with different Accordion headings. I will be doing a bug report about that.
  • Some of the settings in the Account Plan → Allowed virtual server features are only available in ‘Account Plan’ because I assume they must be enabled at creation of the virtual server or never.
    • Administration users
    • Home directory

What is ‘Allowed virtual server features’

These settings define what services are enabled for the Virtual Servers when the ‘Account Plan’ is applied, but they can be overridden when a user utilises ‘Edit Owner Limits’, perhaps this is why the notes keep referring to default settings. My solution will also correct this.

These are permissions. They do not enable or disable services.

They do have a couple of special options that are only available at Virtual Server creation time (Administration users, Home directory). These cannot be enabled/Disabled in the ‘Edit Owner Limits’ page.

Default available features

I reckon that automatic = if the service is enabled on Virtualmin, then enable the related permisisons.

You can go back to these options later and enable extra options for additional services you have added since the creation of the virtual server.

Tooltip says:

When this option is set theAutomatic (as it is by default), new top-level virtual servers will have their allowed features set based on those initially enabled when the server is created.

Default editing capabilities

This forum post from Eric (VM Staff) gives an outline of how VM does tests on the server template to decide what options you should have.

The tool tip says:

If the Automatic option is selected, limits are determined based on whether the virtual server owner is allowed to create sub-servers or not (controlled by the Limit on number of virtual servers field). If so, he will have access to all capabilities. Otherwise, he can only manage users, aliases and edit web pages.

I am not sure which is correct, or are both correct?