small fix. Now checks the ownership of a machine before letting an user access it

This commit is contained in:
Adolfo Gómez García 2019-02-26 16:50:12 +01:00
parent 5d4e05309a
commit 66464df043

View File

@ -51,7 +51,7 @@ import requests
import json
import logging
__updated__ = '2019-02-24'
__updated__ = '2019-02-26'
logger = logging.getLogger(__name__)
traceLogger = logging.getLogger('traceLog')
@ -520,7 +520,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)