diff options
author | Melanie Thielker | 2008-12-17 12:12:23 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-12-17 12:12:23 +0000 |
commit | 1c30111c7aa237c8fe4b8e59df37608f494f5b52 (patch) | |
tree | 992915b90ef7d817ae78a702619f9b6436c6de22 /OpenSim/Region | |
parent | Add repecting the min and max values back in (diff) | |
download | opensim-SC_OLD-1c30111c7aa237c8fe4b8e59df37608f494f5b52.zip opensim-SC_OLD-1c30111c7aa237c8fe4b8e59df37608f494f5b52.tar.gz opensim-SC_OLD-1c30111c7aa237c8fe4b8e59df37608f494f5b52.tar.bz2 opensim-SC_OLD-1c30111c7aa237c8fe4b8e59df37608f494f5b52.tar.xz |
Stop owners from duplicating no-copy objects in-world
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs index 7297450..9f806da 100644 --- a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs | |||
@@ -670,6 +670,13 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions | |||
670 | //They can't even edit the object | 670 | //They can't even edit the object |
671 | return false; | 671 | return false; |
672 | } | 672 | } |
673 | SceneObjectPart part = scene.GetSceneObjectPart(objectID); | ||
674 | if (part == null) | ||
675 | return false; | ||
676 | |||
677 | if ((part.OwnerMask & PERM_COPY) == 0) | ||
678 | return false; | ||
679 | |||
673 | //If they can rez, they can duplicate | 680 | //If they can rez, they can duplicate |
674 | return CanRezObject(objectCount, owner, objectPosition, scene); | 681 | return CanRezObject(objectCount, owner, objectPosition, scene); |
675 | } | 682 | } |