mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
Merge pull request #8412 from birarda/default-permissions
default DS to allow connect for standard groups
This commit is contained in:
commit
3ec1681a4e
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