Add a missing viewer-relevant message to the perms module

httptests
Melanie Thielker 2017-04-30 13:24:48 +01:00
parent 10922c2a1a
commit cf1064a245
1 changed files with 3 additions and 0 deletions

View File

@ -2022,7 +2022,10 @@ namespace OpenSim.Region.CoreModules.World.Permissions
uint perms = GetObjectPermissions(sp, sog, true);
if((perms & (uint)PermissionMask.Copy) == 0)
{
sp.ControllingClient.SendAgentAlertMessage("Copying this item has been denied by the permissions system", false);
return false;
}
if(sog.OwnerID != sp.UUID && (perms & (uint)PermissionMask.Transfer) == 0)
return false;