Merge branch 'dev' into 'dev'

Do not control limits on service class settings with 0 values

See merge request hubzilla/core!1696
This commit is contained in:
Mario 2019-07-30 23:08:42 +02:00
commit 17661b4b5f

View File

@ -672,6 +672,8 @@ function service_class_allows($uid, $property, $usage = false) {
return true; // No service class set => everything is allowed
$limit = engr_units_to_bytes($limit);
if($limit == 0)
return true; // 0 means no limits
if($usage === false) {
// We use negative values for not allowed properties in a subscriber plan
return ((x($limit)) ? (bool) $limit : true);