From d184aade1b41407034a3a849306f871eaf01d55c Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Thu, 16 Jun 2016 16:40:57 -0700 Subject: [PATCH] comments --- domain-server/src/DomainGatekeeper.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/domain-server/src/DomainGatekeeper.cpp b/domain-server/src/DomainGatekeeper.cpp index c4a7d1a425..74269a5794 100644 --- a/domain-server/src/DomainGatekeeper.cpp +++ b/domain-server/src/DomainGatekeeper.cpp @@ -262,8 +262,14 @@ SharedNodePointer DomainGatekeeper::processAgentConnectRequest(const NodeConnect qDebug() << "user-permissions: no username, so:" << userPerms; } else if (verifyUserSignature(username, usernameSignature, nodeConnection.senderSockAddr)) { // they are sent us a username and the signature verifies it + + + // TODO check groups here + + if (_server->_settingsManager.havePermissionsForName(username)) { - // we have specific permissions for this user. + // we have specific permissions for this user. Discard any other permissions and set this + // agent's permissions to be exactly what's indicated on their row of the permissions-grid. userPerms = _server->_settingsManager.getPermissionsForName(username); qDebug() << "user-permissions: specific user matches, so:" << userPerms; } else {