private static function model_permission_check($model, $httpMethod = 'GET')
    {
        $access = true;
        $apiInstance = self::$instance;

        if ($apiInstance->authenticator && $apiInstance->authority) {
            $request = $apiInstance->request;
            $member = $apiInstance->authenticator->getOwner($request);

            if (!$member instanceof Member) {
                $member = null;
            }

            $access = $apiInstance->authority->checkPermission($model, $member, $httpMethod);
            if (!is_bool($access)) {
                $access = true;
            }
        }

        return $access;
    }