mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 05:23:04 +01:00
Add permissions for MODIFY_TILE command
This commit is contained in:
committed by
Michał Janiszewski
parent
bee43fc78d
commit
5bdf2cac75
@@ -745,6 +745,7 @@ void Network::SetupDefaultGroups()
|
||||
user->ToggleActionPermission(16); // Modify Groups
|
||||
user->ToggleActionPermission(17); // Set Player Group
|
||||
user->ToggleActionPermission(18); // Cheat
|
||||
user->ToggleActionPermission(21); // Modify Tile
|
||||
user->Id = 2;
|
||||
group_list.push_back(std::move(user));
|
||||
SetDefaultGroup(1);
|
||||
@@ -786,6 +787,9 @@ void Network::LoadGroups()
|
||||
}
|
||||
json_decref(json);
|
||||
}
|
||||
|
||||
// Host group should always contain all permissions.
|
||||
group_list.at(0)->ActionsAllowed.fill(0xFF);
|
||||
}
|
||||
|
||||
void Network::BeginChatLog()
|
||||
|
||||
Reference in New Issue
Block a user