[KEYCLOAK-5126] - Small typo in code snippet
This commit is contained in:
parent
7db59314c9
commit
14a543fe63
1 changed files with 2 additions and 1 deletions
|
@ -45,7 +45,8 @@ if (contextAttributes.containsValue('kc.client.network.ip_address', '127.0.0.1')
|
|||
You can also use role-based access control (RBAC):
|
||||
|
||||
```javascript
|
||||
var identity = $evaluation.getIdentity();
|
||||
var context = $evaluation.getContext();
|
||||
var identity = context.getIdentity();
|
||||
|
||||
if (identity.hasRole('keycloak_user')) {
|
||||
$evaluation.grant();
|
||||
|
|
Loading…
Reference in a new issue