mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 00:08:53 +02:00
default domain-server permissions to connect for standard
This commit is contained in:
parent
5bd5fc43d3
commit
5bac88c004
1 changed files with 4 additions and 1 deletions
|
@ -532,9 +532,12 @@ void DomainServerSettingsManager::unpackPermissions() {
|
||||||
// we don't have permissions for one of the standard groups, so we'll add them now
|
// we don't have permissions for one of the standard groups, so we'll add them now
|
||||||
NodePermissionsPointer perms { new NodePermissions(standardKey) };
|
NodePermissionsPointer perms { new NodePermissions(standardKey) };
|
||||||
|
|
||||||
// the localhost user is granted all permissions by default
|
|
||||||
if (standardKey == NodePermissions::standardNameLocalhost) {
|
if (standardKey == NodePermissions::standardNameLocalhost) {
|
||||||
|
// the localhost user is granted all permissions by default
|
||||||
perms->setAll(true);
|
perms->setAll(true);
|
||||||
|
} else {
|
||||||
|
// anonymous, logged in, and friend users get connect permissions by default
|
||||||
|
perms->set(NodePermissions::Permission::canConnectToDomain);
|
||||||
}
|
}
|
||||||
|
|
||||||
// add the permissions to the standard map
|
// add the permissions to the standard map
|
||||||
|
|
Loading…
Reference in a new issue