package com.photoz.authz.policy.admin

import org.keycloak.authorization.policy.evaluation.Evaluation;

rule "Authorize Admin Resources"
    dialect "mvel"
        when
           $evaluation : Evaluation(
               $identity : context.identity,
               $identity.hasRole("admin")
           )
        then
           $evaluation.grant();
end