updated the IAuthorizationService interface so that a message is passed back and can be displayed at the client when an avatar is denied access to a region

This commit is contained in:
Rob Smart
2009-09-16 13:34:14 +01:00
committed by Diva Canto
parent 8622f205d7
commit 281ad1251c
7 changed files with 15 additions and 9 deletions

View File

@@ -60,7 +60,8 @@ namespace OpenSim.Server.Handlers.Authorization
XmlSerializer xs = new XmlSerializer(typeof (AuthorizationRequest));
AuthorizationRequest Authorization = (AuthorizationRequest) xs.Deserialize(request);
bool authorized = m_AuthorizationService.IsAuthorizedForRegion(Authorization.ID, Authorization.RegionID);
string message = String.Empty;
bool authorized = m_AuthorizationService.IsAuthorizedForRegion(Authorization.ID, Authorization.RegionID,out message);
AuthorizationResponse result = new AuthorizationResponse(authorized, Authorization.ID + " has been authorized");