Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aco_sync deletes acos when app has plugin which is the same name as controller #127

Open
tsmsogn opened this issue Oct 18, 2017 · 0 comments

Comments

@tsmsogn
Copy link
Contributor

tsmsogn commented Oct 18, 2017

cakephp 3.5.4
acl 0.2.5

$ ./bin/cake bake controller Tags
$ ./bin/cake bake plugin Tags
$ ./bin/cake bake controller --plugin Tags Tags
$ ./bin/cake acl_extras aco_sync
Created Aco node: controllers/Tags
Created Aco node: controllers/Tags/index
Created Aco node: controllers/Tags/view
Created Aco node: controllers/Tags/add
Created Aco node: controllers/Tags/edit
Created Aco node: controllers/Tags/delete
Created Aco node: controllers/Tags/Tags
Created Aco node: controllers/Tags/Tags/index
Created Aco node: controllers/Tags/Tags/view
Created Aco node: controllers/Tags/Tags/add
Created Aco node: controllers/Tags/Tags/edit
Created Aco node: controllers/Tags/Tags/delete
Deleted Aco node: /controllers/Tags/index and all children
Deleted Aco node: /controllers/Tags/view and all children
Deleted Aco node: /controllers/Tags/add and all children
Deleted Aco node: /controllers/Tags/edit and all children
Deleted Aco node: /controllers/Tags/delete and all children
Aco Update Complete

expected:

$ ./bin/cake acl view aco controllers/Tags
Aco tree:
---------------------------------------------------------------
  [5] Tags
    [6] index
    [7] view
    [8] add
    [9] edit
    [10] delete
    [28] Tags
      [29] index
      [30] view
      [31] add
      [32] edit
      [33] delete
---------------------------------------------------------------

actual:

$ ./bin/cake acl view aco controllers/Tags
Aco tree:
---------------------------------------------------------------
  [5] Tags
    [28] Tags
      [29] index
      [30] view
      [31] add
      [32] edit
      [33] delete
---------------------------------------------------------------
@tsmsogn tsmsogn changed the title aco_sync deletes acos when doesn't sync aco for plugin controller aco_sync deletes acos when app has plugin which name is same as the controller name Oct 18, 2017
@tsmsogn tsmsogn changed the title aco_sync deletes acos when app has plugin which name is same as the controller name aco_sync deletes acos when app has plugin which is same name as controller Oct 18, 2017
@tsmsogn tsmsogn changed the title aco_sync deletes acos when app has plugin which is same name as controller aco_sync deletes acos when app has plugin which is the same name as controller Oct 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant