diff options
author | Mario <mario@mariovavti.com> | 2019-07-30 23:08:42 +0200 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-07-30 23:08:42 +0200 |
commit | 17661b4b5f9758b82af9b560f08334c4345bb391 (patch) | |
tree | 92c61098e302a39eed7f425bededeaefcb703f63 | |
parent | 32874b89ca0179be561b8d85796be46188c851cb (diff) | |
parent | d4a038c437a231ceba1ad79fe0c2f9a48e3afce1 (diff) | |
download | volse-hubzilla-17661b4b5f9758b82af9b560f08334c4345bb391.tar.gz volse-hubzilla-17661b4b5f9758b82af9b560f08334c4345bb391.tar.bz2 volse-hubzilla-17661b4b5f9758b82af9b560f08334c4345bb391.zip |
Merge branch 'dev' into 'dev'
Do not control limits on service class settings with 0 values
See merge request hubzilla/core!1696
-rw-r--r-- | include/account.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/account.php b/include/account.php index 5f0c8737f..7546657fd 100644 --- a/include/account.php +++ b/include/account.php @@ -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); |