WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/02/2018 03:48:27 AM (2 years ago)
Author:
SergeyBiryukov
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.
Merges [43085] to the 4.9 branch.
Fixes #43919.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/tests/phpunit/tests/user/capabilities.php

    r41635 r43111  
    237237            'update_languages'       => array( 'administrator' ),
    238238            'deactivate_plugins'     => array( 'administrator' ),
     239            'export_others_personal_data' => array( 'administrator' ),
     240            'erase_others_personal_data'  => array( 'administrator' ),
    239241
    240242            'edit_categories'        => array( 'administrator', 'editor' ),
     
    268270            'update_languages'       => array(),
    269271            'deactivate_plugins'     => array(),
     272            'export_others_personal_data' => array( '' ),
     273            'erase_others_personal_data'  => array( '' ),
    270274
    271275            'customize'              => array( 'administrator' ),
Note: See TracChangeset for help on using the changeset viewer.