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:
Howard Stearns 2017-01-24 13:38:27 -08:00 committed by GitHub
commit 559051beca

View file

@ -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();
}