humanmade / humanmade/authorship

Remove "Create" option when user doesn't have the `create_guest_authors` cap

Open
#76 0 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
PHP
Stars
68
Forks
11
PR merge metrics
No merged PRs in 30d

Description

If the `create_guest_authors` capability is not granted to a user but they still have `attribute_post_type` for the given post type, the "Create" option still shows up at the bottom of the author attribution list even though the user cannot create a guest author.

The "Create" option should only appear when the user can create guest authors.

This does not affect vanilla use of the plugin, only when capabilities are customised.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.