Difference between #5 and #6 of
Getting to Understand Hierarchical RBAC Scheme

Revision #6 has been created by daemons on Mar 3, 2012, 5:45:42 AM with the memo:

An addition to Yii documentation presenting some a bit more elaborated details about RBAC
« previous (#5) next (#7) »

Changes

Title unchanged

Getting to Understand Hierarchical RBAC Scheme

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

hierarchy, RBAC, security, understanding

Content changed

[...]
```

First of all I'd like to convert this to a more human-readable form:

<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://i
5544.tinypic.com/2yk0wzk34pdkr7.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="http://i55.tinypic.com/2yk0wzk.png" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Sample blog system authorization hierarchy</td></tr>
</tbody></table>
The <span style="background-color: #9fc5e8;">turquoise</span> boxes represent roles, the <span style="background-color: #ffd966;">yellow</span> box is a task, and the most fine-grained level of the authorization hierarchy - operations - are <span style="background-color: #f9cb9c;">tan</span>. Collectively roles, tasks and operations are called <b>authorization items</b>. You should keep in mind that functionally all auth item types are equal. It's completely up to you to make some auth item a role or a task - still it would do the same thing. Different types of auth items are introduced solely for the purpose of naming convenience. You are not limited to the three authorization levels: there can be multiple levels of roles, tasks and operations. (Getting back to our diagram, you can see this point illustrated by multiple levels of roles.) Also you may skip any of these levels (the role <b>author</b> has immediate child operation <b>create</b>). The only restriction is that in the auth hierarchy roles should stay higher than tasks and tasks should stay higher than operations.

Now let's take a quick look at what was on blog system creator's mind. Everything seems to be quite logical. The weakest role is <b>reader</b>: the only thing he is allowed to do is to <b>read</b>. An <b>author</b> has a bit more power: he also can <b>create</b> posts and <b>update his own</b> posts. <b>Editors</b> can read posts and <b>update</b> (edit) <i>all</i> posts, not own ones (in fact, according to the hierarchy, editors can't create posts and that's why editors haven't got any <i>own posts</i> at all). And of course, the most powerful role is <b>admin</b> which can do anything.
[...]
47 0
56 followers
Viewed: 125 653 times
Version: 1.1
Category: Tutorials
Written by: daemons
Last updated by: rAWTAZ
Created on: Jan 27, 2011
Last updated: 9 years ago
Update Article

Revisions

View all history