简体   繁体   English

cakephp在控制器中创建新方法后重新加载acl / acos / aros

[英]cakephp reloading acl/acos/aros after creating a new method in a controller

So i've created a new method in a controller, now i need to create the proper acl permissions and acos, aros records etc. There seems to be no way to "reload" the acl permissions, but to add it "manually" using the api? 所以我在控制器中创建了一个新方法,现在我需要创建正确的acl权限和acos,aros记录等。似乎没有办法“重新加载”acl权限,但是要“手动”使用它来添加它api?

I was thinking more of along the lines of a dbsync command or the like? 我更多地考虑使用dbsync命令等等?

After adding new methods, you'll need to use buildAcl() - see http://mark-story.com/posts/view/auth-and-acl-an-end-to-end-tutorial-pt-2 添加新方法后,您需要使用buildAcl() - 请参阅http://mark-story.com/posts/view/auth-and-acl-an-end-to-end-tutorial-pt-2

I have some code to do updates but it's at home. 我有一些代码要做更新,但它在家里。 I'll dig it out later if you like. 如果你愿意,我会稍后再挖出来的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM