doulai2025 2012-06-14 13:52
浏览 26
已采纳

RBAC Role-> Task-> Operation的推荐方法是什么

I started using srbac in Yii.

The options that are available: create a role, task and operation and then assign: Operation to Task, Task to Role.

My question is: do i need to create a task for each operation? because i want to assign 1 operation to the lowest user level, and 4 operations to the super admin.

hope i was clear, Danny

  • 写回答

2条回答 默认 最新

  • dongnao9525 2012-06-14 14:10
    关注

    Role, Task and Operation are all 'authorization items', you've to had it present. They only provide a way to organize permissions in a tree way, and then you can choose whatever node of the tree and assign it to a user. Of course it is also possible to assign multiple nodes to a user, being leafs or not.

    If you only need to design a very simple app, you can simply create 4 'operations' (or tasks, or roles), and assign them under your criteria to the users. But tree scheme is recommended for medium-big apps.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 有赏,i卡绘世画不出
  • ¥15 如何用stata画出文献中常见的安慰剂检验图
  • ¥15 c语言链表结构体数据插入
  • ¥40 使用MATLAB解答线性代数问题
  • ¥15 COCOS的问题COCOS的问题
  • ¥15 FPGA-SRIO初始化失败
  • ¥15 MapReduce实现倒排索引失败
  • ¥15 ZABBIX6.0L连接数据库报错,如何解决?(操作系统-centos)
  • ¥15 找一位技术过硬的游戏pj程序员
  • ¥15 matlab生成电测深三层曲线模型代码