mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
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:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user