Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Discrepancy in capabilities for removing users on Multisite. #2742

Description

@BE-Webdesign

Currently in the permissions check for deleting users we check for current_user_can( 'delete_user', $id ). We however only support removing users from a site at the moment, which actually uses a different capability remove_users. We would need to add a check for current_user_can( 'remove_user', $id ) for multisite installs. Support for deletion from the entire network is a separate issue in #1922, that is not necessarily related with this issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions