* [MRM] Added permission checks to MRM Events (ie, requires edit permission to bind to OnTouch)

arthursv
Adam Frisby 2009-08-16 21:36:33 +10:00
parent 8621dc405e
commit adae13cd18
1 changed files with 9 additions and 6 deletions

View File

@ -87,14 +87,17 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
{ {
add add
{ {
if (!_OnTouchActive) if (CanEdit())
{ {
GetSOP().Flags |= PrimFlags.Touch; if (!_OnTouchActive)
_OnTouchActive = true; {
m_rootScene.EventManager.OnObjectGrab += EventManager_OnObjectGrab; GetSOP().Flags |= PrimFlags.Touch;
} _OnTouchActive = true;
m_rootScene.EventManager.OnObjectGrab += EventManager_OnObjectGrab;
}
_OnTouch += value; _OnTouch += value;
}
} }
remove remove
{ {