Skip to content

Kirby 6.0.1

ModelPermissions

Boolean facade for the permission and ability guards of a model. All rules live in \Kirby\Guards\ModelPermissions and \Kirby\Guards\ModelAbilities, this class only turns their exceptions into booleans for the Panel and the API.

Deprecated in 6.0.0
Use $model->guards() instead