• Resolved furiosojack

    (@furiosojack)


    From a user profile a plugin was created and several version zips were added to it. Then you log in with another user and you don’t see the packages you uploaded. How can I make a user see the plugins of other admin users.

    thanks greetings

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Anderson

    (@davidanderson)

    If you want user with ID 2 to access the plugins of user with ID 1, then use this filter:

    
    add_filter('udmanager_user_id_for_licences', function($user_id) {
    	return (2 == $user_id) ? 1 : $user_id;
    });
    
    Thread Starter furiosojack

    (@furiosojack)

    thanks anderson I did what you told me but apparently to the users who are administrators how could I give permission to other users of another profile to see the plugins that are not administrator if not for example collaborator

    Plugin Author David Anderson

    (@davidanderson)

    Look in the plugin file options.php for the method manage_permission – you can use the filter there to relax the permission used to access plugin features:

    public static function manage_permission($for_what = 'plugins') {
    		$capability_required = ('plugins' == $for_what) ? 'manage_options' : 'manage_options';
    		return apply_filters('udmanager_manage_permission', $capability_required, $for_what);
    	}
    

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Access the same plugin package from different users?’ is closed to new replies.