Pledge: Temporarily disable capability checks to enable development.

This commit is contained in:
Ian Dunn 2019-10-21 12:31:31 -07:00
parent cc5303fa11
commit fff279aa34
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB

View file

@ -193,7 +193,8 @@ function save_pledge( $pledge_id, $pledge ) {
}
if ( ! current_user_can( 'edit_pledge', $pledge_id ) ) {
return;
// todo re-enable once setup cap mapping or whatever
//return;
}
if ( ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) || 'auto-draft' === $pledge->post_status ) {