Fixes Mantis#2744: Permissions returned false for resetting scripts in
non-root SOPs. Now, they will use the SOG the SOP belongs to.0.6.1-post-fixes
parent
95de4717b6
commit
17a0474c5f
|
@ -1442,6 +1442,12 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
|
||||||
DebugPermissionInformation(MethodInfo.GetCurrentMethod().Name);
|
DebugPermissionInformation(MethodInfo.GetCurrentMethod().Name);
|
||||||
if (m_bypassPermissions) return m_bypassPermissionsValue;
|
if (m_bypassPermissions) return m_bypassPermissionsValue;
|
||||||
|
|
||||||
|
SceneObjectPart part = m_scene.GetSceneObjectPart(prim);
|
||||||
|
|
||||||
|
// If we selected a sub-prim to reset, prim won't represent the object, but only a part.
|
||||||
|
// We have to check the permissions of the object, though.
|
||||||
|
if (part.ParentID != 0) prim = part.ParentUUID;
|
||||||
|
|
||||||
// You can reset the scripts in any object you can edit
|
// You can reset the scripts in any object you can edit
|
||||||
return GenericObjectPermission(agentID, prim, false);
|
return GenericObjectPermission(agentID, prim, false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue