diff options
author | UbitUmarov | 2017-01-06 17:33:41 +0000 |
---|---|---|
committer | UbitUmarov | 2017-01-06 17:33:41 +0000 |
commit | fba2466c16ebb15e15880567db565fecd2f30d7c (patch) | |
tree | ca6b670c91bd1e5915226b90a10c017997db9e4e /OpenSim/Framework/PermissionsUtil.cs | |
parent | add a missing god_date transmition (diff) | |
parent | Merge branch 'master' of opensimulator.org:/var/git/opensim (diff) | |
download | opensim-SC-fba2466c16ebb15e15880567db565fecd2f30d7c.zip opensim-SC-fba2466c16ebb15e15880567db565fecd2f30d7c.tar.gz opensim-SC-fba2466c16ebb15e15880567db565fecd2f30d7c.tar.bz2 opensim-SC-fba2466c16ebb15e15880567db565fecd2f30d7c.tar.xz |
Merge branch 'master' of opensimulator.org:/var/git/opensim
Diffstat (limited to 'OpenSim/Framework/PermissionsUtil.cs')
-rw-r--r-- | OpenSim/Framework/PermissionsUtil.cs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/OpenSim/Framework/PermissionsUtil.cs b/OpenSim/Framework/PermissionsUtil.cs index 5d3186d..3dce04d 100644 --- a/OpenSim/Framework/PermissionsUtil.cs +++ b/OpenSim/Framework/PermissionsUtil.cs | |||
@@ -64,24 +64,5 @@ namespace OpenSim.Framework | |||
64 | str = "."; | 64 | str = "."; |
65 | return str; | 65 | return str; |
66 | } | 66 | } |
67 | |||
68 | /// <summary> | ||
69 | /// Applies an object's folded permissions to its regular permissions. | ||
70 | /// </summary> | ||
71 | /// <param name="foldedPerms">The folded permissions. Only the lowest 7 bits are examined.</param> | ||
72 | /// <param name="mainPerms">The permissions variable to modify.</param> | ||
73 | public static void ApplyFoldedPermissions(uint foldedPerms, ref uint mainPerms) | ||
74 | { | ||
75 | // if ((foldedPerms & 7) == 0) | ||
76 | // return; // assume that if the folded permissions are 0 then this means that they weren't actually recorded | ||
77 | |||
78 | if ((foldedPerms & ((uint)PermissionMask.Copy >> 13)) == 0) | ||
79 | mainPerms &= ~(uint)PermissionMask.Copy; | ||
80 | if ((foldedPerms & ((uint)PermissionMask.Transfer >> 13)) == 0) | ||
81 | mainPerms &= ~(uint)PermissionMask.Transfer; | ||
82 | if ((foldedPerms & ((uint)PermissionMask.Modify >> 13)) == 0) | ||
83 | mainPerms &= ~(uint)PermissionMask.Modify; | ||
84 | } | ||
85 | |||
86 | } | 67 | } |
87 | } | 68 | } |