diff options
author | Sean Dague | 2008-07-23 22:14:29 +0000 |
---|---|---|
committer | Sean Dague | 2008-07-23 22:14:29 +0000 |
commit | cf317f5c3352f066fd61a0fa5de19c93947be22c (patch) | |
tree | 2decd9652f6270789713f98b2ac550395b125c08 /OpenSim/Region/ScriptEngine | |
parent | add primitems migration for nhibernate (diff) | |
download | opensim-SC-cf317f5c3352f066fd61a0fa5de19c93947be22c.zip opensim-SC-cf317f5c3352f066fd61a0fa5de19c93947be22c.tar.gz opensim-SC-cf317f5c3352f066fd61a0fa5de19c93947be22c.tar.bz2 opensim-SC-cf317f5c3352f066fd61a0fa5de19c93947be22c.tar.xz |
refactor TaskInventoryItem Mask -> Permissions to be consistant with how things
are stored in the db.
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 12 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 50691a5..2d5be27 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |||
@@ -3361,7 +3361,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
3361 | { | 3361 | { |
3362 | if (inv.Value.Name == name) | 3362 | if (inv.Value.Name == name) |
3363 | { | 3363 | { |
3364 | if ((inv.Value.OwnerMask & (uint)(PermissionMask.Copy | PermissionMask.Transfer | PermissionMask.Modify)) == (uint)(PermissionMask.Copy | PermissionMask.Transfer | PermissionMask.Modify)) | 3364 | if ((inv.Value.CurrentPermissions & (uint)(PermissionMask.Copy | PermissionMask.Transfer | PermissionMask.Modify)) == (uint)(PermissionMask.Copy | PermissionMask.Transfer | PermissionMask.Modify)) |
3365 | { | 3365 | { |
3366 | return inv.Value.AssetID.ToString(); | 3366 | return inv.Value.AssetID.ToString(); |
3367 | } | 3367 | } |
@@ -6508,15 +6508,15 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
6508 | switch (mask) | 6508 | switch (mask) |
6509 | { | 6509 | { |
6510 | case 0: | 6510 | case 0: |
6511 | return (int)inv.Value.BaseMask; | 6511 | return (int)inv.Value.BasePermissions; |
6512 | case 1: | 6512 | case 1: |
6513 | return (int)inv.Value.OwnerMask; | 6513 | return (int)inv.Value.CurrentPermissions; |
6514 | case 2: | 6514 | case 2: |
6515 | return (int)inv.Value.GroupMask; | 6515 | return (int)inv.Value.GroupPermissions; |
6516 | case 3: | 6516 | case 3: |
6517 | return (int)inv.Value.EveryoneMask; | 6517 | return (int)inv.Value.EveryonePermissions; |
6518 | case 4: | 6518 | case 4: |
6519 | return (int)inv.Value.NextOwnerMask; | 6519 | return (int)inv.Value.NextPermissions; |
6520 | } | 6520 | } |
6521 | } | 6521 | } |
6522 | } | 6522 | } |
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index a747586..9832cfc 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -3302,7 +3302,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3302 | { | 3302 | { |
3303 | if (inv.Value.Name == name) | 3303 | if (inv.Value.Name == name) |
3304 | { | 3304 | { |
3305 | if ((inv.Value.OwnerMask & (uint)(PermissionMask.Copy | PermissionMask.Transfer | PermissionMask.Modify)) == (uint)(PermissionMask.Copy | PermissionMask.Transfer | PermissionMask.Modify)) | 3305 | if ((inv.Value.CurrentPermissions & (uint)(PermissionMask.Copy | PermissionMask.Transfer | PermissionMask.Modify)) == (uint)(PermissionMask.Copy | PermissionMask.Transfer | PermissionMask.Modify)) |
3306 | { | 3306 | { |
3307 | return inv.Value.AssetID.ToString(); | 3307 | return inv.Value.AssetID.ToString(); |
3308 | } | 3308 | } |
@@ -6287,15 +6287,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6287 | switch (mask) | 6287 | switch (mask) |
6288 | { | 6288 | { |
6289 | case 0: | 6289 | case 0: |
6290 | return (int)inv.Value.BaseMask; | 6290 | return (int)inv.Value.BasePermissions; |
6291 | case 1: | 6291 | case 1: |
6292 | return (int)inv.Value.OwnerMask; | 6292 | return (int)inv.Value.CurrentPermissions; |
6293 | case 2: | 6293 | case 2: |
6294 | return (int)inv.Value.GroupMask; | 6294 | return (int)inv.Value.GroupPermissions; |
6295 | case 3: | 6295 | case 3: |
6296 | return (int)inv.Value.EveryoneMask; | 6296 | return (int)inv.Value.EveryonePermissions; |
6297 | case 4: | 6297 | case 4: |
6298 | return (int)inv.Value.NextOwnerMask; | 6298 | return (int)inv.Value.NextPermissions; |
6299 | } | 6299 | } |
6300 | } | 6300 | } |
6301 | } | 6301 | } |