Skip to content

Commit

Permalink
Merge pull request #547 from publishpress/development
Browse files Browse the repository at this point in the history
Update release
  • Loading branch information
agapetry authored Nov 16, 2021
2 parents fc63dcc + 5ac063e commit 83aba5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion revisionary_main.php
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,9 @@ function fltStatusChangeCap($caps, $cap, $user_id, $args) {
}

// allow PublishPress Permissions to apply 'copy' exceptions
if ($can_copy = apply_filters('revisionary_can_copy', $can_copy, $post_id, 'draft', 'draft-revision', $filter_args)) {
if ($can_copy = apply_filters('revisionary_can_copy', $can_copy, $post_id, 'draft', 'draft-revision', $filter_args)
|| apply_filters('revisionary_can_submit', $can_copy, $post_id, 'pending', 'pending-revision', $filter_args)
) {
$caps = ['read'];
}

Expand Down

0 comments on commit 83aba5f

Please sign in to comment.