WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Access Manager
[resolved] Deleting Capabilities (6 posts)

  1. mystifier
    Member
    Posted 2 years ago #

    When a new capability is added using AAM, it is possible to delete it again. But I have lots of obsolete capabilities that have been left behind when trying out different plug-ins.

    They are all stored in one 'wp_user_roles' field in 'wp_options' but this is too complicated to edit by hand.

    Is there any way that the delete capability could be available for all capabilities? (given that users would have to be careful).

    http://wordpress.org/extend/plugins/advanced-access-manager/

  2. WP AAM
    Member
    Plugin Author

    Posted 2 years ago #

    Hi mystifier,
    I was thinking about this ides few months ago and found that this is very dangerous feature.
    Inexperienced user can delete any capability which can cause completely access lost.
    In latest releases I remaining AAM setting event after plugin has been deleted, so it'll save custom capabilities.

    Regards,
    Vasyl

  3. mystifier
    Member
    Posted 2 years ago #

    Hi Vasyl,

    Maybe you could allow a capability to be deleted only if it does not appear in any role. That way, users would be have to be fairly sure of what they are doing and couldn't delete one accidentally.

  4. WP AAM
    Member
    Plugin Author

    Posted 2 years ago #

    Hi mystifier,
    The problem in your idea is that each capability you see is assigned to a Role. There is no such a thing like capability repository and capabilities assigned to Role.
    Maybe I just turn on/off the ability to delete capabilities in Config Press with parameter like: allow_delete_capabilities. In Such way somebody who wants to delete a capability will be 100% responsible for that.
    Regards,
    Vasyl

  5. mystifier
    Member
    Posted 2 years ago #

    Sorry Vasyl, what I meant to say was: only allow a capability to be deleted if it was not enabled for any role.

  6. WP AAM
    Member
    Plugin Author

    Posted 2 years ago #

    mystifier,
    I'll still introduce allow_delete_capabilities in Config Press.

    Thanks for a good idea,
    Regards,
    Vasyl

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic