From e4807cf648ef2fbd69b32b7f61391fa98b878353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Wed, 14 Mar 2018 09:51:17 +0100 Subject: [PATCH] sets "allow_users_reset" to false on save if service does not supports it. --- server/src/uds/REST/methods/services_pools.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/src/uds/REST/methods/services_pools.py b/server/src/uds/REST/methods/services_pools.py index 7b2a65904..040251f7d 100644 --- a/server/src/uds/REST/methods/services_pools.py +++ b/server/src/uds/REST/methods/services_pools.py @@ -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