WordPress.org

Ready to get started?Download WordPress

Forums

User Access Manager
Integration with custom Roles (Capabilities Manager) (5 posts)

  1. Sith Lord Goz
    Member
    Posted 3 years ago #

    Great plugin - but it looks like the roles used for the "minimum admin access" setting are hard-coded to the WordPress defaults (Author, Editor etc).

    If you use this plugin with Capabilities Manager, then you can create custom roles... but they don't show up in the UAM settings page dropdown. I have modified the plugin code to make it work, but obviously it would be great if UAM would query the WP db to pull back all the existing roles (just like WP itself does on the "New User" screen). Alternatively, if it used a capability to decide (versus just matching the User's role)

    Would be great to see this make it into the next release - keep up the good work!

  2. Don Elliott
    Member
    Posted 2 years ago #

    I completely agree with this!

    Sith, can you share the code you used to 'force' it to work?

    Thanks!

  3. Sith Lord Goz
    Member
    Posted 2 years ago #

    @Don - I think i ended up just modifying the built-in Editor role using Cap. Manager, and choosing that in the UAM settings (to avoid having to update plugin code every time there was an upgrade).

    However I think that if you added your own custom Roles to the <select> option on line #486 of /tpl/adminSettings.php in the User-Access-Manager plugin, it should work. Remember that not only are the capabilities important, but the "level" of the Role is sometimes used to determine abilities. I'm still confused by this, but I suppose it depends how the plugin uses the Role info.

  4. Don Elliott
    Member
    Posted 2 years ago #

    Thanks for the response. I've did exactly the same thing (in regards to modifying the editor role) but didn't look at the adminSettings.php page, I'll check that out.

    Thanks!

  5. siddkb1986
    Member
    Posted 2 years ago #

    Hey so I have a bit of a challenging requirement - I need to create a user with priveleges similar to an editor. But this user should have the ability of creating users, and editing only those user's posts who they have created. Think of it as editor groups. Oh and almost forgot to mention all of this needs to happen programatically - which means the list of user's an editor has the right to manage, updates dynamically based on new users created by that editor. Any clue how to go about doing this? Help would be MUCH appreciated.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic