Skip to content

Order of plugin controllers matters and is broken #2

@kwentworth

Description

@kwentworth

I'm upgrading my app from 1.2 to 1.3. I'm using your acl_extras and everything works great except one weird issue. I'm not sure if this is a bug in Cake or a bug with acl_extras (but I figure you'd be the guy to know).

I have plugin controllers named:

avorders_attributes_contoller.php
avorders_categories_controller.php
avorders_controller.php
avorders_vendors_controller.php

They get input into the DB in the same order as on the file system (which is the order above). The ACL check fails for the first two controllers, but works for the 3rd and 4th. I modifed your code to sort the plugin controller names alphabetically and now ACL works as expected.

On line 190 I added: sort($controllers);

Thanks for this great plugin.

-Kevin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions