diff --git a/pkg/zfs/api/middleware.go b/pkg/zfs/api/middleware.go index 3c6b378..c713352 100644 --- a/pkg/zfs/api/middleware.go +++ b/pkg/zfs/api/middleware.go @@ -406,14 +406,6 @@ func ValidatePropertyValue() gin.HandlerFunc { return } - // Special handling for quota values - if property := c.Param("property"); property == "quota" || property == "refquota" { - if !quotaRegex.MatchString(req.Value) { - APIError(c, errors.New(errors.ZFSQuotaInvalid, "Invalid quota format")) - return - } - } - c.Next() } } @@ -563,13 +555,6 @@ func ValidateZFSProperties() gin.HandlerFunc { return } - // Special handling for quota values - if k == "quota" || k == "refquota" { - if !quotaRegex.MatchString(v) { - APIError(c, errors.New(errors.ZFSQuotaInvalid, "Invalid quota format")) - return - } - } } c.Next() }