mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
object CanMove is for in scene SOGs Icleints and SPs and permitions module is NOT a shared module
This commit is contained in:
@@ -325,7 +325,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
if(group == null || group.IsDeleted)
|
||||
return;
|
||||
|
||||
if (Permissions.CanMoveObject(group.UUID, remoteClient.AgentId))// && PermissionsMngr.)
|
||||
if (Permissions.CanMoveObject(group, remoteClient))// && PermissionsMngr.)
|
||||
{
|
||||
group.GrabMovement(objectID, offset, pos, remoteClient);
|
||||
}
|
||||
@@ -386,7 +386,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
SceneObjectGroup group = GetGroupByPrim(objectID);
|
||||
if (group != null)
|
||||
{
|
||||
if (Permissions.CanMoveObject(group.UUID, remoteClient.AgentId))// && PermissionsMngr.)
|
||||
if (Permissions.CanMoveObject(group, remoteClient))// && PermissionsMngr.)
|
||||
{
|
||||
group.SpinStart(remoteClient);
|
||||
}
|
||||
@@ -404,7 +404,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
SceneObjectGroup group = GetGroupByPrim(objectID);
|
||||
if (group != null)
|
||||
{
|
||||
if (Permissions.CanMoveObject(group.UUID, remoteClient.AgentId))// && PermissionsMngr.)
|
||||
if (Permissions.CanMoveObject(group, remoteClient))// && PermissionsMngr.)
|
||||
{
|
||||
group.SpinMovement(rotation, remoteClient);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user