You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users without the capability 'edit_posts' can't save pages or custom posts types that thay have edit capability.
Fix is require:
file: elementor/includes/editor.php line: 738
The function create_nonce should check for capabilities instead of using the constant const EDITING_CAPABILITY = 'edit_posts';
This edit fix this issue
public function create_nonce() {
if ( ! current_user_can('edit_'.get_post_type( $this->get_post_id() ) ) ) {
return null;
}
return wp_create_nonce( self::EDITING_NONCE_KEY );
}
The text was updated successfully, but these errors were encountered:
EdenK
changed the title
User with custom capabilities: elementor won't save the page/cpt
[BUG] User with custom capabilities: elementor won't save the page/cpt
Nov 28, 2017
Users without the capability 'edit_posts' can't save pages or custom posts types that thay have edit capability.
Fix is require:
file: elementor/includes/editor.php line: 738
The function
create_nonce
should check for capabilities instead of using the constantconst EDITING_CAPABILITY = 'edit_posts';
This edit fix this issue
The text was updated successfully, but these errors were encountered: