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 linux驱动,linux应用,多线程
  • ¥20 我要一个分身加定位两个功能的安卓app
  • ¥15 基于FOC驱动器,如何实现卡丁车下坡无阻力的遛坡的效果
  • ¥15 IAR程序莫名变量多重定义
  • ¥15 (标签-UDP|关键词-client)
  • ¥15 关于库卡officelite无法与虚拟机通讯的问题
  • ¥15 目标检测项目无法读取视频
  • ¥15 GEO datasets中基因芯片数据仅仅提供了normalized signal如何进行差异分析
  • ¥100 求采集电商背景音乐的方法
  • ¥15 数学建模竞赛求指导帮助