mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
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.
This commit is contained in:
@@ -293,6 +293,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
||||
|
||||
LSL_List osGetLinkPrimitiveParams(int linknumber, LSL_List rules);
|
||||
|
||||
/// <summary>
|
||||
/// Identical to llCreateLink() but does not require permission from the owner.
|
||||
/// </summary>
|
||||
/// <param name='target'></param>
|
||||
/// <param name='parent'></param>
|
||||
void osForceCreateLink(string target, int parent);
|
||||
|
||||
/// <summary>
|
||||
/// Identical to llBreakLink() but does not require permission from the owner.
|
||||
/// </summary>
|
||||
/// <param name='linknum'></param>
|
||||
void osForceBreakLink(int linknum);
|
||||
|
||||
/// <summary>
|
||||
/// Check if the given key is an npc
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user