mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Change the QUERYACCESS method to eliminate spurious access denied messages
This commit is contained in:
@@ -5145,9 +5145,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
// from logging into the region, teleporting into the region
|
||||
// or corssing the broder walking, but will NOT prevent
|
||||
// child agent creation, thereby emulating the SL behavior.
|
||||
public bool QueryAccess(UUID agentID, Vector3 position)
|
||||
public bool QueryAccess(UUID agentID, Vector3 position, out string reason)
|
||||
{
|
||||
string reason;
|
||||
reason = "You are banned from the region";
|
||||
|
||||
if (!AuthorizeUser(agentID, out reason))
|
||||
{
|
||||
@@ -5178,6 +5178,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
if (banned || restricted)
|
||||
return false;
|
||||
}
|
||||
|
||||
reason = String.Empty;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user