mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-31 01:48:04 +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
|
||||
elif isinstance(maxServices, gui.NumericField):
|
||||
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):
|
||||
self.maxUserServices = maxServices()
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user