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