mirror of
https://github.com/dkmstr/openuds.git
synced 2025-02-07 01:58:15 +03:00
Set 0 as unliminet for masServices field
This commit is contained in:
parent
cf245e47be
commit
2f272da073
@ -288,6 +288,9 @@ class Service(Module):
|
|||||||
self.maxUserServices = maxServices
|
self.maxUserServices = maxServices
|
||||||
elif isinstance(maxServices, gui.NumericField):
|
elif isinstance(maxServices, gui.NumericField):
|
||||||
self.maxUserServices = maxServices.num()
|
self.maxUserServices = maxServices.num()
|
||||||
|
# For 0 values on maxUserServices field, we will set it to UNLIMITED
|
||||||
|
if self.maxUserServices == 0:
|
||||||
|
self.maxUserServices = consts.UNLIMITED
|
||||||
elif callable(maxServices):
|
elif callable(maxServices):
|
||||||
self.maxUserServices = maxServices()
|
self.maxUserServices = maxServices()
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user