Skip to content

angee.base.permissions

Disk-resolved REBAC declarations shared by runtime framework layers.

effective_rebac_definition

python
def effective_rebac_definition(model: type[models.Model]) -> Definition | None

Return model's effective Zed definition parsed from its disk source.

The composer points an extended definition's owning AppConfig.rebac_schema at the emitted base-plus-extensions source. Resolving that declaration rather than assuming permissions.zed therefore covers both ordinary addons and composed permissions.extends.zed contributions without consulting the runtime backend or its database-backed schema.

Released under the AGPL-3.0 License.