• I can’t give access to the section of resumes of another role that isn’t admin, even giving all the permissions of capabilities.
    Any restriction that I can manage from the plugin?

Viewing 1 replies (of 1 total)
  • Thread Starter carlamannino

    (@carlamannino)

    I solved it by changing the file /class.resume-builder-admin-menus.php

    I replaced the role by the capability:

    add_menu_page(esc_html__(‘Resumes’, ‘resume-builder’), esc_html__(‘Resumes’, ‘resume-builder’), ‘publish_posts’, ‘rbuilder_main’, ”, ‘dashicons-text-page’, 58);

    However all user can see all resumes, I’m trying to restrict loading of WP object in /class.resume-builder-resumes.php but it doesn’t seem to work

    $args = array(
    	'post_type' 		=> 'rb_resume',
    	'posts_per_page' 	=> -1,
    	'post_status' 		=> 'publish',
    	'orderby'		=> 'name',
    	'order'			=> 'ASC',
    	'perm'        		=> 'readable',
    	author' 		=> $current_user->ID
    	;

    I’m reading main.js but it would be very helpful if you could guide me where to look.
    Thank you so much!

Viewing 1 replies (of 1 total)
  • The topic ‘No access for non-admin users role’ is closed to new replies.