mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 04:12:46 +02:00
Merge pull request #9495 from howard-stearns/bypass-filter-with-lock-rights
bypass entity-server edit filter if you have lock/unlock rights
This commit is contained in:
commit
559051beca
1 changed files with 2 additions and 1 deletions
|
@ -1053,7 +1053,8 @@ int EntityTree::processEditPacketData(ReceivedMessage& message, const unsigned c
|
||||||
|
|
||||||
startFilter = usecTimestampNow();
|
startFilter = usecTimestampNow();
|
||||||
bool wasChanged = false;
|
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) {
|
if (!allowed) {
|
||||||
properties = EntityItemProperties();
|
properties = EntityItemProperties();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue