← Back to Awards Plugin

5.2.7 DomainPolicy Reference

Source: app/plugins/Awards/src/Policy/DomainPolicy.php

DomainPolicy is a thin BasePolicy subclass for Award Domain entities. Standard add, view, edit, delete, and index decisions are inherited and resolved through configured RBAC policy methods.

Keep entity-specific decisions here and collection/grid filtering in DomainsTablePolicy. An empty subclass is still enforced by CakePHP Authorization; it does not imply public access.

Award domains are tenant configuration. Tests should use the tenant’s configured permissions and must not assume that IDs or domain names are global.