1
0
Fork 0
4Creative-Changes/Patch/0001-add-auto_grant_pay_per...

29 lines
1.1 KiB
Diff

From 722e158ff7065186b65952e5068ed1026bd8aedc Mon Sep 17 00:00:00 2001
From: Christopher Latza <latzachristopher@live.de>
Date: Mon, 1 Jun 2020 21:22:51 +0200
Subject: [PATCH] add auto_grant_pay_perms
---
.../Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index f45a8b1607..05ebc81317 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -4310,6 +4310,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
}
}
+ if (World.GetExtraSetting("auto_grant_pay_perms") == "true")
+ {
+ implicitPerms = implicitPerms | ScriptBaseClass.PERMISSION_DEBIT;
+ }
+
if ((perm & (~implicitPerms)) == 0) // Requested only implicit perms
{
m_host.TaskInventory.LockItemsForWrite(true);
--
2.25.1.windows.1