aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
diff options
context:
space:
mode:
authorUbitUmarov2017-01-07 16:55:03 +0000
committerUbitUmarov2017-01-07 16:55:03 +0000
commitadd27a503e2558b7ddeb951d3e42e09b1c04fb36 (patch)
tree888ab5919cb52f1e0201fc4ab60987a0df022f1f /OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
parentMerge branch 'master' into httptests (diff)
parentupdate permissions module with the new options (diff)
downloadopensim-SC-add27a503e2558b7ddeb951d3e42e09b1c04fb36.zip
opensim-SC-add27a503e2558b7ddeb951d3e42e09b1c04fb36.tar.gz
opensim-SC-add27a503e2558b7ddeb951d3e42e09b1c04fb36.tar.bz2
opensim-SC-add27a503e2558b7ddeb951d3e42e09b1c04fb36.tar.xz
Merge branch 'master' into httptests
Diffstat (limited to 'OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs')
-rw-r--r--OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs10
1 files changed, 6 insertions, 4 deletions
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
index a5c9fb4..597b439 100644
--- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
+++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
@@ -3053,11 +3053,13 @@ namespace OpenSim.ApplicationPlugins.RemoteController
3053 { 3053 {
3054 if (item.InvType == (int)InventoryType.Object && (item.CurrentPermissions & 7) != 0) 3054 if (item.InvType == (int)InventoryType.Object && (item.CurrentPermissions & 7) != 0)
3055 { 3055 {
3056 uint perms = item.CurrentPermissions; 3056 if ((item.CurrentPermissions & ((uint)PermissionMask.Copy >> 13)) == 0)
3057 PermissionsUtil.ApplyFoldedPermissions(item.CurrentPermissions, ref perms); 3057 item.CurrentPermissions &= ~(uint)PermissionMask.Copy;
3058 item.CurrentPermissions = perms; 3058 if ((item.CurrentPermissions & ((uint)PermissionMask.Transfer >> 13)) == 0)
3059 item.CurrentPermissions &= ~(uint)PermissionMask.Transfer;
3060 if ((item.CurrentPermissions & ((uint)PermissionMask.Modify >> 13)) == 0)
3061 item.CurrentPermissions &= ~(uint)PermissionMask.Modify;
3059 } 3062 }
3060
3061 item.CurrentPermissions &= item.NextPermissions; 3063 item.CurrentPermissions &= item.NextPermissions;
3062 item.BasePermissions &= item.NextPermissions; 3064 item.BasePermissions &= item.NextPermissions;
3063 item.EveryOnePermissions &= item.NextPermissions; 3065 item.EveryOnePermissions &= item.NextPermissions;