Skip to content

"Submit for Review" no check for required SCF fields #197

@YanMetelitsa

Description

@YanMetelitsa

Hi!

I noticed that when a user submits a custom post type post for approval (using the "Submit for Review" button), there’s no validation for required SCF fields.

Let me explain:

  1. I created the Events post type via SCF and defined custom capabilities for it (e.g. edit_events, etc.).
  2. I created a new role, removed all default capabilities, and added read and edit_events. Users with this role can now create Event posts.
  3. These users cannot publish posts – they can only submit them for review. Everything works fine in general, but when a user clicks “Submit for Review” no check is performed for required SCF fields. As a result, posts can be submitted without completing mandatory fields.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] BugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions