Skip to content

Command Palette: "Edit post type" command is available to non-admin users #402

@ockham

Description

@ockham

The "Edit post type" command takes the user to SCF's "Post Type" screen, where properties of a CPT can be modified (e.g. singular/plural labels, associated taxonomies, etc).

Image

It is currently registered unconditionally, meaning that it's available not only to admins, but also to users with lesser privileges -- who cannot actually modify a post type. Those users, when selecting that command, will be presented with an error message:

Sorry, you are not allowed to edit this item.

While WordPress makes sure that users cannot escalate their privileges this way, the command should not show up for users that lack the required permissions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions