Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
a42b80ec
Commit
a42b80ec
authored
Apr 17, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor doc update [skip ci]
parent
c7c708d4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
authorization.md
docs/guide/authorization.md
+6
-4
No files found.
docs/guide/authorization.md
View file @
a42b80ec
...
@@ -211,11 +211,13 @@ Building authorization data is all about the following kinds of work:
...
@@ -211,11 +211,13 @@ Building authorization data is all about the following kinds of work:
*
associating rules with roles and permissions;
*
associating rules with roles and permissions;
*
assigning roles to users.
*
assigning roles to users.
The work can be done once for all via a console command for applications that require very simple RBAC
.
For applications that require very simple RBAC, the above work can be done once for all via a console command
.
It may also need a set of user interfaces to allow applications with complex RBAC needs to continuously
For applications that require complex RBAC with dynamic update to the authorization data, special user interfaces
updating the authorization data
.
may need to be developed
.
The example below shows how to use
`authManager`
to build authorization data:
The example below shows how to make use of the APIs offered by
`authManager`
to build authorization data. If you
use a console command to create the authorization data, you may put this piece of code in an action of the console
command.
```
php
```
php
$auth
=
Yii
::
$app
->
authManager
;
$auth
=
Yii
::
$app
->
authManager
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment