3

I Googled for this for over 3 hours but didn't find anything helpful. Is there any CakePHP plugin that allows managing user roles and capabilities without building ACL, the wordpress way?

Why built-in CakePHP ACL does not meet my needs:

  • it's kind of overkill for not very big applications
  • Keep updating ACOS can be pain.
  • you can't use version control to track roles and capabilities changes

What I would like new plugin to be:

  • in AppController or somewhere else you can define array of supplied capabilities. I do not need them to be dynamic, though in wordpress that was done even without database. I don't even think capabilities should match controller methods (but maybe I am not right there)
  • when initializing roles, you can set which capabilities are true for that role
  • in view file, you can check if current user has the capability, f.e., to edit slug field, and if yes, show this field.

I am really not an authentication specialist and may sound like an ordinary wordpress fan, but to my point of view wordpress system of user management is really efficient and could be implemented in CakePHP.

4

1 回答 1

0

我倾向于使用 CakeDC 用户插件,它会做你想做的事。

https://github.com/cakedc/users

如果您使用的是 CakePHP 2.x,请务必检查 2.0 分支

于 2012-12-10T17:22:00.340 回答