Skip to content

"rest_cannot_read" when user tries to look at / add API keys under their profile #157

@mihkeleidast

Description

@mihkeleidast

Our users have the "subscriber" role with the following capabilities added via the Members plugin:
image

If a user with that role logs in to WordPress and navigates to their profile to look at / add API keys, nothing happens and the following errors are logged in the browser console.
image
image

From what I gather from the code, this method will return an error if the user can't manage options and it will never reach the edit_user check:
https://github.com/cedaro/satispress/blob/develop/src/REST/ApiKeysController.php#L143-L160

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