Make WordPress Core


Ignore:
Timestamp:
05/02/2018 01:07:00 AM (4 years ago)
Author:
iandunn
Message:

Privacy: Limit export and erasure to super admins on Multisite.

Multisite networks have a variety of use cases, and in many of them single-site administrators are not trusted to take actions that affect the whole network, require making decisions about legal compliance, etc. By default, those actions should require super admin capabilities. Plugins can be used to override that behavior if a particular site's use case calls for it.

Props allendav, jeremyfelt, iandunn.
Fixes #43919.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/user/capabilities.php

    r42832 r43085  
    238238            'deactivate_plugins'     => array( 'administrator' ),
    239239            'upgrade_php'            => array( 'administrator' ),
     240            'export_others_personal_data' => array( 'administrator' ),
     241            'erase_others_personal_data'  => array( 'administrator' ),
    240242
    241243            'edit_categories'        => array( 'administrator', 'editor' ),
     
    270272            'deactivate_plugins'     => array(),
    271273            'upgrade_php'            => array(),
     274            'export_others_personal_data' => array( '' ),
     275            'erase_others_personal_data'  => array( '' ),
    272276
    273277            'customize'              => array( 'administrator' ),
Note: See TracChangeset for help on using the changeset viewer.