mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
ZEPPELIN-2825 - Fix formatting in doc changes
This commit is contained in:
parent
3f49d8413c
commit
95a9b4f413
1 changed files with 2 additions and 2 deletions
|
|
@ -227,14 +227,14 @@ In this case, only who have `admin` role can see **Interpreter Setting**, **Cred
|
|||
If you want to grant this permission to other users, you can change **roles[ ]** as you defined at `[users]` section.
|
||||
|
||||
### Apply multiple roles in Shiro configuration
|
||||
By default, Shiro will allow access to a URL if only user is part of all the roles defined like this:
|
||||
By default, Shiro will allow access to a URL if only user is part of "**all the roles**" defined like this:
|
||||
```
|
||||
[urls]
|
||||
|
||||
/api/interpreter/** = authc, roles[admin, role1]
|
||||
```
|
||||
|
||||
If there is a need that user with "any of the defined roles" should be allowed, then following Shiro configuration can be used:
|
||||
If there is a need that user with "**any of the defined roles**" should be allowed, then following Shiro configuration can be used:
|
||||
```
|
||||
[main]
|
||||
anyofroles = org.apache.zeppelin.utils.AnyOfRolesAuthorizationFilter
|
||||
|
|
|
|||
Loading…
Reference in a new issue