public function checkFieldAccess($model, string $fieldName, string $action, $user = null): bool
    {
        return $this->laModel->checkFieldAccess($model, $fieldName, $action, $user);
    }
public function checkFieldAccess($model, string $fieldName, string $action, $user = null): bool
    {
        return $this->laModel->checkFieldAccess($model, $fieldName, $action, $user);
    }
public function checkFieldAccess ( $ model , string $ fieldName , string $ action , $ user = null ) : bool { return $ this -> laModel -> checkFieldAccess ( $ model , $ fieldName , $ action , $ user ) ; }
Twig extension callback for checking field access

If something goes wrong an error will be logged and the method will return FALSE. If no permissions are defined for this action on the provided field and model it will return TRUE.

@param object|string $model     A model object or class string.
@param string        $fieldName The name of the field.
@param string        $action    Examples of field actions are "get" and "set".
@param object|string $user      (optional) Either a user object or a string to signify an anonymous user. If no user is supplied, the current user will be used.

@return bool TRUE if access is granted or FALSE if access is denied.
Twig extension callback for checking field access