Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Andrew Norcross

    (@norcross)

    which access level are you wanting to apply?

    Thread Starter idobi

    (@idobi)

    Contributors

    Plugin Author Andrew Norcross

    (@norcross)

    I’ll need to add a filter to accommodate this. I’ve got a version coming out in the next day or two, I’ll add it in there.

    Plugin Author Andrew Norcross

    (@norcross)

    Just pushed the update, so you can now filter the capability level. Here’s the filter you will need to add to your theme / functionality plugin (not the YOURLS plugin itself, of course):

    function rkv_yourls_allow_contribs( $action, $cap ) {
    	return 'edit_posts';
    }
    
    add_filter( 'yourls_user_cap', 'rkv_yourls_allow_contribs', 10, 2 );
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Allow non-admin access?’ is closed to new replies.