mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
Fix bug with entity adding w/o permission
Entities could be added to the local tree, but be rejected by the server because of a lack of permissions.
This commit is contained in:
parent
2e8f6c2cc6
commit
2786061d71
1 changed files with 5 additions and 0 deletions
|
@ -320,6 +320,11 @@ EntityItemPointer EntityTree::addEntity(const EntityItemID& entityID, const Enti
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!properties.getClientOnly() && getIsClient() &&
|
||||||
|
!nodeList->getThisNodeCanRez() && !nodeList->getThisNodeCanRezTmp()) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
bool recordCreationTime = false;
|
bool recordCreationTime = false;
|
||||||
if (props.getCreated() == UNKNOWN_CREATED_TIME) {
|
if (props.getCreated() == UNKNOWN_CREATED_TIME) {
|
||||||
// the entity's creation time was not specified in properties, which means this is a NEW entity
|
// the entity's creation time was not specified in properties, which means this is a NEW entity
|
||||||
|
|
Loading…
Reference in a new issue