在Cakephp中以编程方式删除ARO节点(Delete ARO nodes progmatically in Cakephp)

编程入门 行业动态 更新时间:2024-10-24 01:59:36
在Cakephp中以编程方式删除ARO节点(Delete ARO nodes progmatically in Cakephp)

我有一个简单的ARO / ACO设置,我的所有用户都是ARO,我的所有模块都是ACO,ARO_ACO表拥有权限。

这很好用,除非我删除用户,我希望能够通过删除与用户相关的ARO相关的任何条目来清理ARO_ACO和ARO表。

我该怎么做? 文档根本没用!

I've got a simple ARO/ACO set up with simply all my users as AROs and all my Modules as ACOs and the ARO_ACOs table holds the permission rights.

This works great, except when I delete a User, I'd like to be able to clean up the ARO_ACOs and ARO tables by removing any entries associated with the ARO related to the user.

How do I go about this? The documentation is not helpful at all!

最满意答案

使用ACL行为? 无需任何操作

假设正在使用acl行为 ,则无需执行任何操作,因为它会自动删除aros / acos的acl记录 ,这也会同时删除权限记录。

Using the ACL behavior? No action required

Assuming the acl behavior is in use, there's no need to do anything as it automatically deletes acl records for aros/acos, which will also delete the permission records at the same time.

更多推荐

本文发布于:2023-07-31 18:35:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1347353.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:节点   中以   方式   Cakephp   ARO

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!