• Resolved mystifier

    (@mystifier)


    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).

    https://www.ads-software.com/extend/plugins/advanced-access-manager/

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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

    Thread Starter mystifier

    (@mystifier)

    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.

    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

    Thread Starter mystifier

    (@mystifier)

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

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

    Thanks for a good idea,
    Regards,
    Vasyl

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Advanced Access Manager] Deleting Capabilities’ is closed to new replies.