OwnerDataTrait
Comprueba si el usuario activo es propietario de un registro, según la restricción onlyOwnerData y las columnas de propiedad (codagente / nick) del modelo. El host debe disponer de $this->user y $this->permissions.
Table of Contents
Methods
- checkOwnerData() : bool
- Returns true if the active user has permission to view the information of the active record in the informed model.
Methods
checkOwnerData()
Returns true if the active user has permission to view the information of the active record in the informed model.
protected
checkOwnerData(ModelClass $model) : bool
Parameters
- $model : ModelClass