diff options
author | Bryan O'Sullivan <bos@lindenlab.com> | 2009-07-24 15:39:56 -0700 |
---|---|---|
committer | Bryan O'Sullivan <bos@lindenlab.com> | 2009-07-24 15:39:56 -0700 |
commit | b47dbc2acadb1fa478daf89dbc3d54225c6e4629 (patch) | |
tree | 9bc0cbf4795e1ebdfcb80848fea8ffe092b4983d /indra/llinventory/llpermissions.cpp | |
parent | 9c394b3aaecacc9a70354c544bd728a4f4f966d2 (diff) | |
parent | 90e25f6ba80b773117582d6a392037ac274fff39 (diff) |
Merge with an oldish change of mine
Diffstat (limited to 'indra/llinventory/llpermissions.cpp')
-rw-r--r-- | indra/llinventory/llpermissions.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/llinventory/llpermissions.cpp b/indra/llinventory/llpermissions.cpp index 328ed4588b..2a27f3fc8d 100644 --- a/indra/llinventory/llpermissions.cpp +++ b/indra/llinventory/llpermissions.cpp @@ -277,6 +277,17 @@ BOOL LLPermissions::setOwnerAndGroup( return allowed; } +//Fix for DEV-33917, last owner isn't used much and has little impact on +//permissions so it's reasonably safe to do this, however, for now, +//limiting the functionality of this routine to objects which are +//group owned. +void LLPermissions::setLastOwner(const LLUUID& last_owner) +{ + if (isGroupOwned()) + mLastOwner = last_owner; +} + + // only call this if you know what you're doing // there are usually perm-bit consequences when the // ownerhsip changes |