14 lines
No EOL
328 B
Text
14 lines
No EOL
328 B
Text
package com.photoz.authz.policy.admin
|
|
|
|
import org.keycloak.authorization.policy.evaluation.Evaluation;
|
|
|
|
rule "Authorize View User Album"
|
|
dialect "mvel"
|
|
when
|
|
$evaluation : Evaluation(
|
|
$identity : context.identity,
|
|
$identity.hasRole("user")
|
|
)
|
|
then
|
|
$evaluation.grant();
|
|
end |