diff options
author | Justin Clark-Casey (justincc) | 2014-03-12 23:05:16 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-03-12 23:05:16 +0000 |
commit | 296d63e20b0b77ba70257726ae519ef733865534 (patch) | |
tree | ccb78b6140f8f19cbe1d933e1891f26db0587c0d /OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs | |
parent | When sending group notices through group messaging, allow the agent ID to use... (diff) | |
download | opensim-SC-296d63e20b0b77ba70257726ae519ef733865534.zip opensim-SC-296d63e20b0b77ba70257726ae519ef733865534.tar.gz opensim-SC-296d63e20b0b77ba70257726ae519ef733865534.tar.bz2 opensim-SC-296d63e20b0b77ba70257726ae519ef733865534.tar.xz |
Implement osForceCreateLink() and osForceBreakLink()
These are identical to llCreateLink() and llBreakLink() except that they don't require script permissions.
However, osForceCreateLink() still requires that linked and linkee still have the same owner.
There's also an AutomaticLinkPermission setting in [XEngine] that could be set to true to prevent the LSL function checks.
But this doesn't allow the finer control over which users/scripts, etc. can do this that the OSSL functions provide.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs index 9c060e5..7d5e568 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs | |||
@@ -542,6 +542,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
542 | return m_OSSL_Functions.osGetLinkPrimitiveParams(linknumber, rules); | 542 | return m_OSSL_Functions.osGetLinkPrimitiveParams(linknumber, rules); |
543 | } | 543 | } |
544 | 544 | ||
545 | public void osForceCreateLink(string target, int parent) | ||
546 | { | ||
547 | m_OSSL_Functions.osForceCreateLink(target, parent); | ||
548 | } | ||
549 | |||
550 | public void osForceBreakLink(int linknum) | ||
551 | { | ||
552 | m_OSSL_Functions.osForceBreakLink(linknum); | ||
553 | } | ||
554 | |||
545 | public LSL_Integer osIsNpc(LSL_Key npc) | 555 | public LSL_Integer osIsNpc(LSL_Key npc) |
546 | { | 556 | { |
547 | return m_OSSL_Functions.osIsNpc(npc); | 557 | return m_OSSL_Functions.osIsNpc(npc); |