mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 04:43:31 +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;
|
qDebug() << "user-permissions: no username, so:" << userPerms;
|
||||||
} else if (verifyUserSignature(username, usernameSignature, nodeConnection.senderSockAddr)) {
|
} else if (verifyUserSignature(username, usernameSignature, nodeConnection.senderSockAddr)) {
|
||||||
// they are sent us a username and the signature verifies it
|
// they are sent us a username and the signature verifies it
|
||||||
|
|
||||||
|
|
||||||
|
// TODO check groups here
|
||||||
|
|
||||||
|
|
||||||
if (_server->_settingsManager.havePermissionsForName(username)) {
|
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);
|
userPerms = _server->_settingsManager.getPermissionsForName(username);
|
||||||
qDebug() << "user-permissions: specific user matches, so:" << userPerms;
|
qDebug() << "user-permissions: specific user matches, so:" << userPerms;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue