WordPress.org

Ready to get started?Download WordPress

Forums

Capability Manager Enhanced
capability loading bug (9 posts)

  1. Ateny
    Member
    Posted 1 year ago #

    if one:
    - loads a user's capabilities
    - sets the capabilities
    - reload the capabilities
    the role loads with the default capabilities, even if they are correctly set

    Note: when one save the new capability scheme for a given role, the page reloads with the new scheme (with red and green labels), but when one enters later in the plugin admin page and load the scheme for a given role, the default capabilities are loaded

    I have WPMU 3.4.2 via subdomains, and tried both via network activate and via single domain activation

    http://wordpress.org/extend/plugins/capability-manager-enhanced/

  2. kevinB
    Member
    Plugin Author

    Posted 1 year ago #

    I just tested this on WP 3.4.2 multisite with subdomains and don't see a problem. You are scrolling down to click the Update button?

    The role defs are stored separately for each site. Is that your issue?

  3. Ateny
    Member
    Posted 1 year ago #

    I don't see an Update button. I see a "Save Changes". My steps are:
    - select role in "Select Role to View / Edit";
    - press "Load";
    - deselect some capability;
    - press "Save Changes" on the bottom
    it save and reloads the page with the correct capabilities checked.

    This saves the capabilities, and they work correctly. Now, if I, later:
    - select same role as above in "Select Role to View / Edit";
    - press "Load"
    it loads the default capabilities and not the ones I have just saved via "Save Changes".

    Hope this clarify. I have v1.4.8. Thanks!

  4. Ateny
    Member
    Posted 1 year ago #

    One doubt: can you activate it through "Network Activate", or do you have to activate it separately for each site?

  5. kevinB
    Member
    Plugin Author

    Posted 1 year ago #

    Activation can be network or site-specific. Role definitions are site-specific regardless.

    I'm still not able to create this error. What are the role and capability names involved? Do you have any other plugin or theme code related to role definitions which might be forcing them back to defaults?

  6. kevinB
    Member
    Plugin Author

    Posted 1 year ago #

    What is the role of the logged user when attempting this role editing?

  7. Ateny
    Member
    Posted 1 year ago #

    With
    - super admin, then
    - admin

    I tried to change both:
    - administrator, and
    - subscriber
    capabilities

    just to be sure.

  8. kevinB
    Member
    Plugin Author

    Posted 1 year ago #

    What are the capability names that you tried to add or remove?

    Can you temporarily disable other plugins and switch to default theme to be sure there are no conflicts?

  9. kevinB
    Member
    Plugin Author

    Posted 1 year ago #

    If this is/was a translated site and you previously used Capability Manager Enhanced 1.4.3 or earlier, it's possible that the stored capability array is corrupted. If so, try Tools > Capability Manager > Reset Roles and Capabilities to WordPress defaults. This will only affect one site.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags