• Resolved developer2webindiasolutions

    (@developer2webindiasolutions)


    Hai.
    I have installed hurrytimer plugin. It is working in fine.
    But I have access hurrytimer only through admin login.
    No other roles can add/edit hurrytimer.
    I have installed wc-market place for vendor admin panel and when I logined as a vendor (dc-vendor role), the menu is visible (hurrytimer) but when I click it shows access permission denied.
    How can I fix this. (I already tried with user role management plugins but does’t work).

    Screenshots :
    https://prnt.sc/qde6q2
    https://prnt.sc/qde6dx

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nabil Lemsieh

    (@nlemsieh)

    Hello,

    Sorry for my delayed answer.

    The user must be able to edit posts, by default only admins can manage the plugin. Add this code snippet your theme functions.php to allow vendor to use the plugin:

    add_action( 'admin_menu', function(){
    	if(!current_user_can('edit_posts')) return;
    	foreach($GLOBALS['menu'] as $i => $menu){
    		if($menu[2] === 'hurrytimer'){
    			$GLOBALS['menu'][$i][1] = 'edit_posts';
    			$GLOBALS['submenu']['hurrytimer'][0][1]= 'edit_posts';
    		break;
    		}
    }
    });

    Let me know if it still doesn’t work.

    Best,
    Nabil

    • This reply was modified 5 years, 2 months ago by Nabil Lemsieh.
    Plugin Author Nabil Lemsieh

    (@nlemsieh)

    I’m going to mark this thread as resolved. Feel free to reply or open a new ticket you still need help.

    Best,
    Nabil

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Access permission issue’ is closed to new replies.