mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
add basic tests to check that under default permissions module owner can delete objects and that non-owners (who are also not administrators, etc.) cannot
This commit is contained in:
@@ -1733,7 +1733,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
// Autoreturn has a null client. Nothing else does. So
|
||||
// allow only returns
|
||||
if (action != DeRezAction.Return)
|
||||
{
|
||||
m_log.WarnFormat(
|
||||
"[AGENT INVENTORY]: Ignoring attempt to {0} {1} {2} without a client",
|
||||
action, grp.Name, grp.UUID);
|
||||
return;
|
||||
}
|
||||
|
||||
permissionToTakeCopy = false;
|
||||
}
|
||||
@@ -1741,13 +1746,13 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
if (!Permissions.CanTakeCopyObject(grp.UUID, remoteClient.AgentId))
|
||||
permissionToTakeCopy = false;
|
||||
|
||||
if (!Permissions.CanTakeObject(grp.UUID, remoteClient.AgentId))
|
||||
permissionToTake = false;
|
||||
|
||||
|
||||
if (!Permissions.CanDeleteObject(grp.UUID, remoteClient.AgentId))
|
||||
permissionToDelete = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Handle god perms
|
||||
|
||||
Reference in New Issue
Block a user