Skip to content

Handle delete_* capabilities #2

Description

@marcochiesi

The current version of the plugin only handles edit_* capabilities but not delete_*. This brings to odd situations where a user cannot edit a post, but he can delete it, which is paradoxical.
Example: if you create a page and set it as accessible by Admin only, Editors will be able to delete it while not being able to edit. Since this is a very typical use case, I think it should be addressed somehow. You should add the proper delete capabilities when you check for permissions.

A further step would be to have separate settings for editing and deleting items. Example: an Editor should be able to edit a particular page, but not the delete it.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions