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.hasRealmRole("admin")
           )
        then
           $evaluation.grant();
end