diff options
author | Todd Stinson <stinson@lindenlab.com> | 2012-03-23 17:47:40 -0700 |
---|---|---|
committer | Todd Stinson <stinson@lindenlab.com> | 2012-03-23 17:47:40 -0700 |
commit | f0dafcfc7ce0c7c310ccb076b42572e0479754e2 (patch) | |
tree | 952b0d1990d8b46016355c6ceed80755cae3cba8 /indra/newview/llselectmgr.cpp | |
parent | b76f036bf6af7ae3e1b8ffb2edeee21911256820 (diff) |
PATH-199: Disabling the Take and Delete right-click context menu options when object is enforced permanent.
Diffstat (limited to 'indra/newview/llselectmgr.cpp')
-rw-r--r-- | indra/newview/llselectmgr.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/newview/llselectmgr.cpp b/indra/newview/llselectmgr.cpp index 9b56a5be35..b0aae89a85 100644 --- a/indra/newview/llselectmgr.cpp +++ b/indra/newview/llselectmgr.cpp @@ -6922,9 +6922,10 @@ LLViewerObject* LLObjectSelection::getFirstDeleteableObject() LLViewerObject* obj = node->getObject(); // you can delete an object if you are the owner // or you have permission to modify it. - if( obj && ( (obj->permModify()) || - (obj->permYouOwner()) || - (!obj->permAnyOwner()) )) // public + if( obj && !obj->isPermanentEnforced() && + ( (obj->permModify()) || + (obj->permYouOwner()) || + (!obj->permAnyOwner()) )) // public { if( !obj->isAttachment() ) { |