1
0
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:
Adolfo Gómez García 2018-03-14 09:51:17 +01:00
parent 92de41d410
commit e4807cf648

View File

@ -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