mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +02:00
comments
This commit is contained in:
parent
52e3be4f5d
commit
d184aade1b
1 changed files with 7 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue