From 66464df043e78904cd054ed5d23bc05a4b974ec2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Tue, 26 Feb 2019 16:50:12 +0100 Subject: [PATCH] small fix. Now checks the ownership of a machine before letting an user access it --- server/src/uds/core/managers/UserServiceManager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/uds/core/managers/UserServiceManager.py b/server/src/uds/core/managers/UserServiceManager.py index c67fd3e1..0bafa110 100644 --- a/server/src/uds/core/managers/UserServiceManager.py +++ b/server/src/uds/core/managers/UserServiceManager.py @@ -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)