Delegation: give MyStudio permissions to other admins

amtekkie · Today

A few MyStudio actions could harm the whole forum: installing PHP, changing payment credentials, refunds. Only super administrators can take them, until Delegation grants them to chosen admins.

In short
  • Super admins: the user ids in $config['super_admins'] (inc/config.php)
  • MyStudio → Delegation (super admins only): grant each action to groups or user ids
  • Updating MyStudio can never be delegated

The actions you can delegate

MyStudio Delegation page granting permissions to admin groups and members
(1) An action with what it allows. (2) Groups that may take it. (3) Single members by user id.
ActionWhat it allows
Install PHP codePackages with theme PHP or modules, PHP snippets: code with full server access
Add scripts to pagesJavaScript, script tags or event handlers in pages, ad code and ad slots
Payment gatewaysGateway settings and API credentials
Refunds and manual paymentsRefunds, marking orders paid, extending or cancelling subscriptions
Membership productsShop products that move buyers into user groups
Licensing settingsRate limits, domain proof, shared-key actions, offline time
Seed and wipe test dataDev Options' demo data import and danger zone
Write server rewrite rulesThe SEO module's .htaccess rules and robots.txt
Change points balancesAdd or take points, draw the lottery early, reset balances

Actions of switched-off modules are hidden.

Grant an action

  1. As a super admin, open MyStudio → Delegation.
  2. Per action, select user groups (Ctrl for several; primary and additional groups count) and/or type user ids, comma-separated.
  3. Save. Each save goes to the Admin Log.

The admin still needs the MyStudio permission for the page involved (Users & Groups → Admin Permissions, MyStudio tab).

Good practice

PHP = server accessGrant Install PHP code only to people you'd give the server.
People, not groupsPrefer single user ids for the most powerful actions.
ReviewWhen staff change, and check the Admin Log now and then.