diff options
author | UbitUmarov | 2017-01-07 16:55:03 +0000 |
---|---|---|
committer | UbitUmarov | 2017-01-07 16:55:03 +0000 |
commit | add27a503e2558b7ddeb951d3e42e09b1c04fb36 (patch) | |
tree | 888ab5919cb52f1e0201fc4ab60987a0df022f1f /OpenSim/ApplicationPlugins/RemoteController | |
parent | Merge branch 'master' into httptests (diff) | |
parent | update permissions module with the new options (diff) | |
download | opensim-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')
-rw-r--r-- | OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs | 10 |
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; |