1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-01-10 01:17:59 +03:00

added check user on vm access, to avoid concurrency problems

This commit is contained in:
Adolfo Gómez García 2019-02-27 07:37:13 +01:00
parent 27a29d92e0
commit 45bf24ecdd

View File

@ -562,7 +562,7 @@ class UserServiceManager(object):
if kind == 'A': # This is an assigned service
logger.debug('Getting A service {}'.format(idService))
userService = UserService.objects.get(uuid=idService)
userService = UserService.objects.get(uuid=idService, user=user)
userService.deployed_service.validateUser(user)
else:
ds = ServicePool.objects.get(uuid=idService)