def _setResourceQuota(self, model, resource, params):
        """
        Handle setting quota policies for any resource that supports them.

        :param model: the type of resource (e.g., user or collection)
        :param resource: the resource document.
        :param params: the query parameters.  'policy' is required and used.
        :returns: the updated resource document.
        """
        self.requireParams(('policy', ), params)
        policy = self._validatePolicy(params['policy'])
        if resource not in QUOTA_FIELD:
            resource[QUOTA_FIELD] = {}
        resource[QUOTA_FIELD].update(policy)
        self.model(model).save(resource, validate=False)
        return self._filter(model, resource)
dataset/ETHPy150Open girder/girder/plugins/user_quota/server/quota.py/QuotaPolicy._setResourceQuota/swapped operands of `not in`