diff --git a/src/um/QuotaImage.cc b/src/um/QuotaImage.cc index ea0b15eb7c..cd0a584734 100644 --- a/src/um/QuotaImage.cc +++ b/src/um/QuotaImage.cc @@ -53,7 +53,10 @@ bool QuotaImage::check(Template * tmpl, string& error) if ( !image_id.empty() ) { - return check_quota(image_id, image_request, error); + if ( !check_quota(image_id, image_request, error) ) + { + return false; + } } } diff --git a/src/um/QuotaNetwork.cc b/src/um/QuotaNetwork.cc index 8d438740aa..e9267413c3 100644 --- a/src/um/QuotaNetwork.cc +++ b/src/um/QuotaNetwork.cc @@ -53,7 +53,10 @@ bool QuotaNetwork::check(Template * tmpl, string& error) if ( !net_id.empty() ) { - return check_quota(net_id, net_request, error); + if ( !check_quota(net_id, net_request, error) ) + { + return false; + } } }