mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01: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
|
||||
NodePermissionsPointer perms { new NodePermissions(standardKey) };
|
||||
|
||||
// the localhost user is granted all permissions by default
|
||||
if (standardKey == NodePermissions::standardNameLocalhost) {
|
||||
// the localhost user is granted all permissions by default
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue