mirror of
https://github.com/dkmstr/openuds.git
synced 2024-12-22 13:34:04 +03:00
sets "allow_users_reset" to false on save if service does not supports
it.
This commit is contained in:
parent
92de41d410
commit
e4807cf648
@ -276,6 +276,9 @@ class ServicesPools(ModelHandler):
|
||||
if serviceType.publicationType is None:
|
||||
self._params['publish_on_save'] = False
|
||||
|
||||
if serviceType.canReset is False:
|
||||
self._params['allow_users_reset'] = False
|
||||
|
||||
if serviceType.needsManager is True:
|
||||
osmanager = OSManager.objects.get(uuid=processUuid(fields['osmanager_id']))
|
||||
fields['osmanager_id'] = osmanager.id
|
||||
|
Loading…
Reference in New Issue
Block a user