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:
parent
27a29d92e0
commit
45bf24ecdd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user