mirror of
https://github.com/lubosz/overte.git
synced 2025-04-17 00:57:44 +02:00
bypass entity-server edit filter if you have lock/unlock rights
This commit is contained in:
parent
ada685a376
commit
da914f0a4f
1 changed files with 2 additions and 1 deletions
|
@ -1053,7 +1053,8 @@ int EntityTree::processEditPacketData(ReceivedMessage& message, const unsigned c
|
|||
|
||||
startFilter = usecTimestampNow();
|
||||
bool wasChanged = false;
|
||||
bool allowed = filterProperties(properties, properties, wasChanged);
|
||||
// Having (un)lock rights bypasses the filter.
|
||||
bool allowed = senderNode->isAllowedEditor() || filterProperties(properties, properties, wasChanged);
|
||||
if (!allowed) {
|
||||
properties = EntityItemProperties();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue