From 6ac6ca057d087c7563ab1660881011d711f30911 Mon Sep 17 00:00:00 2001
From: Melanie
Date: Thu, 14 Oct 2010 07:28:20 +0100
Subject: Kill some magic numbers in the caps module
---
OpenSim/Framework/Capabilities/Caps.cs | 6 +++---
prebuild.xml | 1 +
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/OpenSim/Framework/Capabilities/Caps.cs b/OpenSim/Framework/Capabilities/Caps.cs
index 6f32adf..72283de 100644
--- a/OpenSim/Framework/Capabilities/Caps.cs
+++ b/OpenSim/Framework/Capabilities/Caps.cs
@@ -962,10 +962,10 @@ namespace OpenSim.Framework.Capabilities
item.AssetType = assType;
item.InvType = inType;
item.Folder = parentFolder;
- item.CurrentPermissions = 2147483647;
- item.BasePermissions = 2147483647;
+ item.CurrentPermissions = (uint)PermissionMask.All;
+ item.BasePermissions = (uint)PermissionMask.All;
item.EveryOnePermissions = 0;
- item.NextPermissions = 2147483647;
+ item.NextPermissions = (uint)(PermissionMask.Move | PermissionMask.Modify | PermissionMask.Transfer);
item.CreationDate = Util.UnixTimeSinceEpoch();
if (AddNewInventoryItem != null)
diff --git a/prebuild.xml b/prebuild.xml
index 24a3e61..abe6934 100644
--- a/prebuild.xml
+++ b/prebuild.xml
@@ -679,6 +679,7 @@
+
--
cgit v1.1