Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Symfony ACL - issue deleting an ACE and resulting ace_order of remaining ACEs in the ACL #5820

Copy link
Copy link
Closed
@bdscarboro

Description

@bdscarboro
Issue body actions

I have a question I hope you might be able to help with. I'm using ACL to secure individual entities (using object ACEs). So for example I have an entity with one ACL containing 5 object Aces, corresponding to 5 people that have access to the entity. In my app's UI, I revoke access to that entity for one of those 5 people. In my code I find and delete that one object ace. This all works fine, but this is also where the problem comes in. Prior to deleting that ACE, the acl_entries table shows the 5 entries and the ace_order field contains 0,1,2,3,4 for those records. However after deleting the ACE, the 4 remaining ACEs have order 0,0,1,3 (notice there is no order=2). In later code, where we try to save that ACL again, an exception is thrown "invalid index (2)" as it tries to access element #2 in the array. So not sure if I'm doing something wrong, or if this is a bug in the symfony ACL code. Any suggestions would be most appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.