diff options
Diffstat (limited to 'OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs')
-rw-r--r-- | OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs index 1ee2468..510905f 100644 --- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs +++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs | |||
@@ -3087,15 +3087,13 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
3087 | /// </summary> | 3087 | /// </summary> |
3088 | private void ApplyNextOwnerPermissions(InventoryItemBase item) | 3088 | private void ApplyNextOwnerPermissions(InventoryItemBase item) |
3089 | { | 3089 | { |
3090 | if (item.InvType == (int)InventoryType.Object && (item.CurrentPermissions & 7) != 0) | 3090 | if (item.InvType == (int)InventoryType.Object) |
3091 | { | 3091 | { |
3092 | if ((item.CurrentPermissions & ((uint)PermissionMask.Copy >> 13)) == 0) | 3092 | uint perms = item.CurrentPermissions; |
3093 | item.CurrentPermissions &= ~(uint)PermissionMask.Copy; | 3093 | PermissionsUtil.ApplyFoldedPermissions(item.CurrentPermissions, ref perms); |
3094 | if ((item.CurrentPermissions & ((uint)PermissionMask.Transfer >> 13)) == 0) | 3094 | item.CurrentPermissions = perms; |
3095 | item.CurrentPermissions &= ~(uint)PermissionMask.Transfer; | ||
3096 | if ((item.CurrentPermissions & ((uint)PermissionMask.Modify >> 13)) == 0) | ||
3097 | item.CurrentPermissions &= ~(uint)PermissionMask.Modify; | ||
3098 | } | 3095 | } |
3096 | |||
3099 | item.CurrentPermissions &= item.NextPermissions; | 3097 | item.CurrentPermissions &= item.NextPermissions; |
3100 | item.BasePermissions &= item.NextPermissions; | 3098 | item.BasePermissions &= item.NextPermissions; |
3101 | item.EveryOnePermissions &= item.NextPermissions; | 3099 | item.EveryOnePermissions &= item.NextPermissions; |