• Resolved mpbaweb

    (@mpbaweb)


    Hi
    When I log in as admin, I see a full featured sidebar with all the settings / config options for all my plugins (As it should be).
    If I log in as a non admin user (Author for example), all the config options I don’t want non admins to see disappear (Good) except for Team Members which is still accessible to non admin users. I don’t want Authors to be able to see this. Interestingly, it does not allow the non-admin user to edit/delete existing teams, but it does allow them to create new ones.
    Examples
    As admin:
    As admin
    As NON admin:
    As NON admin

    • This topic was modified 7 years, 10 months ago by mpbaweb.
Viewing 2 replies - 1 through 2 (of 2 total)
  • I have sent Donnie (the author) a similar message about this a few weeks ago and after he understood what I/[we] meant, he said that he will let the developers know and get back to me “hopefully soon.” Just thought I’d update you since my contact with his about it is only 4 weeks ago. Please let me know if this was resolved. I might look into modifying the code myself when/if I find the time.

    Plugin Author WP Darko

    (@spwebguy)

    Hi both, Donnie here,

    Sorry about that, here’s how you can restrict the Team Members plugin access to admins only.

    In your plugin tmm.php file, find (around line 133):
    'capability_type' => 'post',

    Replace with:

    'capabilities' => array(
        'edit_post'          => 'update_core',
        'read_post'          => 'update_core',
        'delete_post'        => 'update_core',
        'edit_posts'         => 'update_core',
        'edit_others_posts'  => 'update_core',
        'delete_posts'       => 'update_core',
        'publish_posts'      => 'update_core',
        'read_private_posts' => 'update_core'
    ),

    And that’s it. If you have any trouble doing this, I’ll help you, just let me know. I’ll try to be faster this time ??

    Sorry for the inconvenience caused.

    • This reply was modified 7 years, 5 months ago by WP Darko.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Restrict Access’ is closed to new replies.