From 9db33e6367e17b842db6afe5c001513ec1a1e270 Mon Sep 17 00:00:00 2001 From: Tantrix <50278147+Tantrix@users.noreply.github.com> Date: Fri, 8 Nov 2019 21:01:39 +0300 Subject: [PATCH] Update inf.c An attempt to add missing 'limit_min_hubs_total' option. https://github.com/janvidar/uhub/issues/69 --- src/core/inf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/inf.c b/src/core/inf.c index 85c57a7..a6d1324 100644 --- a/src/core/inf.c +++ b/src/core/inf.c @@ -522,7 +522,8 @@ static int check_limits(struct hub_info* hub, struct hub_user* user, struct adc_ if ((user->limits.hub_count_user < hub_get_min_hubs_user(hub) && hub_get_min_hubs_user(hub)) || (user->limits.hub_count_registered < hub_get_min_hubs_reg(hub) && hub_get_min_hubs_reg(hub)) || - (user->limits.hub_count_operator < hub_get_min_hubs_op(hub) && hub_get_min_hubs_op(hub))) + (user->limits.hub_count_operator < hub_get_min_hubs_op(hub) && hub_get_min_hubs_op(hub)) || + (user->limits.hub_count_total < hub_get_min_hubs_total(hub) && hub_get_min_hubs_total(hub))) { return status_msg_user_hub_limit_low; }