[KEYCLOAK-5126] - Small typo in code snippet

This commit is contained in:
Pedro Igor 2017-07-04 16:25:10 -03:00
parent 7db59314c9
commit 14a543fe63

View file

@ -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();