diff options
author | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
commit | 89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch) | |
tree | bcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/llinventory/llinventory.h | |
parent | Second Life viewer sources 1.13.3.2 (diff) | |
download | meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2 meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz |
Second Life viewer sources 1.14.0.0
Diffstat (limited to 'linden/indra/llinventory/llinventory.h')
-rw-r--r-- | linden/indra/llinventory/llinventory.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/linden/indra/llinventory/llinventory.h b/linden/indra/llinventory/llinventory.h index 1ebcabf..fc135de 100644 --- a/linden/indra/llinventory/llinventory.h +++ b/linden/indra/llinventory/llinventory.h | |||
@@ -32,6 +32,7 @@ | |||
32 | 32 | ||
33 | #include "llassetstorage.h" | 33 | #include "llassetstorage.h" |
34 | #include "lldarray.h" | 34 | #include "lldarray.h" |
35 | #include "llmemtype.h" | ||
35 | #include "llpermissions.h" | 36 | #include "llpermissions.h" |
36 | #include "llsaleinfo.h" | 37 | #include "llsaleinfo.h" |
37 | #include "llsd.h" | 38 | #include "llsd.h" |
@@ -382,6 +383,12 @@ struct SetItemOwnerAndGroup | |||
382 | LLPermissions perm = item->getPermissions(); | 383 | LLPermissions perm = item->getPermissions(); |
383 | bool is_atomic = (LLAssetType::AT_OBJECT == item->getType()) ? false : true; | 384 | bool is_atomic = (LLAssetType::AT_OBJECT == item->getType()) ? false : true; |
384 | perm.setOwnerAndGroup(mAuthorityID, mOwnerID, mGroupID, is_atomic); | 385 | perm.setOwnerAndGroup(mAuthorityID, mOwnerID, mGroupID, is_atomic); |
386 | // If no owner id is set, this is equivalent to a deed action. | ||
387 | // Clear 'share with group'. | ||
388 | if (mOwnerID.isNull()) | ||
389 | { | ||
390 | perm.setMaskGroup(PERM_NONE); | ||
391 | } | ||
385 | item->setPermissions(perm); | 392 | item->setPermissions(perm); |
386 | } | 393 | } |
387 | }; | 394 | }; |