ivanamat / cakephp3-aclmanager

CakePHP 3.x - Acl Manager
MIT License
27 stars 27 forks source link

Unable to update permissions ( Allow, Deny ) on some controllers . #23

Closed traeH-Heart closed 6 years ago

traeH-Heart commented 6 years ago

Hello @Iván merry Xmas,

I have some issues on updating my permissions, some of my controllers unable to update permissions. when I change controller BLOGS to deny it's perfectly working, but when I try to change the other controller ARTICLES nothing happens.

traeH-Heart commented 6 years ago

image

See this example the first controller I tried to deny it's working but the next Controller I try to change to Allow or Deny nothing happens.

Your ACL Manager is big help. Appreciated your worked

Thanks.

ivanamat commented 6 years ago

Hello @iamdavidheartmercado I wish you a Merry Christmas for you, too. ;)

Thanks for appreciating the work done for CakePHP 3.x!

ivanamat commented 6 years ago

@iamdavidheartmercado

I can see an index on the image you post, I suppose you have modified some part of the code. Have you made sure to close each part of the code correctly?

Can you check the configuration of your php and tell me what value max_input_vars has? It is also possible that this value is limited.

ivanamat commented 6 years ago

@iamdavidheartmercado

I'm going to reinstall Kubuntu on my machine and it may take a while to answer again. When it's reinstalled, I'll respond right away.

Regards

traeH-Heart commented 6 years ago

Hello @ivanamat

Sorry for delayed reply.

How many controllers have you got?

My total acos 575

When you save changes, its to slow? (more than 30 seconds)

not more than 30s. when I save changes 20s to 25s

I can see an index on the image you post, I suppose you have modified some part of the code. Have you made sure to close each part of the code correctly?

Nope. no modifications on actions, just controllers only.

my php.ini max_input_vars image

traeH-Heart commented 6 years ago

Hi @ivanamat

I found the problem on my ACL I have 575 Acos and I have 4 roles when i try to save changes beyond 1000 max_input_vars nothing happens.

Acos 575 * 4 roles = 2300 post params.

joakim-emagine commented 6 years ago

@traeH-divaD We ended having to resort to pagination, to get around this. It probably saves the first 1000 on the page and ignores the rest.

ivanamat commented 6 years ago

Hi @traeH-divaD and @joakim-emagine

Sorry for having been slow to respond.

In the php.ini, update the max_input_vars config option, which is defaulted to a value of 1000.