diff options
author | onefang | 2020-09-11 00:41:12 +1000 |
---|---|---|
committer | onefang | 2020-09-11 00:41:12 +1000 |
commit | b95b03b409578da87f1dbaf809001e88e4e4fd56 (patch) | |
tree | 1db95cf20313408ef581377ae8e508d6d01cea00 /OpenSim/Server/Handlers | |
parent | Add DefaultRegionAccess in [AuthorizationService] section. (diff) | |
download | opensim-SC-b95b03b409578da87f1dbaf809001e88e4e4fd56.zip opensim-SC-b95b03b409578da87f1dbaf809001e88e4e4fd56.tar.gz opensim-SC-b95b03b409578da87f1dbaf809001e88e4e4fd56.tar.bz2 opensim-SC-b95b03b409578da87f1dbaf809001e88e4e4fd56.tar.xz |
Automatically add members to certain groups, and HGers from specific grids to certain other groups.
It doesn't let them know, though the last group added will be their
active group. This replaces a PHP script I used to use, that got broken
by a PHP update. It also didn't let people know, no one complained.
This is better.
Another attempt at sorting out the auto group chicken and egg problems.
Are you a local? Asking for a friend.
Hypergridders have their full name in firstname, and their grid in
lastname. Sometimes.
Code filled with gotos may be spaghetti code, but object oriented code
can be like chopped spaghetti that's hidden all over the kitchen. At
least with gotos you can follow them.
Diffstat (limited to 'OpenSim/Server/Handlers')
-rw-r--r-- | OpenSim/Server/Handlers/Authorization/AuthorizationServerPostHandler.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Server/Handlers/Authorization/AuthorizationServerPostHandler.cs b/OpenSim/Server/Handlers/Authorization/AuthorizationServerPostHandler.cs index 310a542..07e09bc 100644 --- a/OpenSim/Server/Handlers/Authorization/AuthorizationServerPostHandler.cs +++ b/OpenSim/Server/Handlers/Authorization/AuthorizationServerPostHandler.cs | |||
@@ -61,7 +61,8 @@ namespace OpenSim.Server.Handlers.Authorization | |||
61 | AuthorizationRequest Authorization = (AuthorizationRequest) xs.Deserialize(request); | 61 | AuthorizationRequest Authorization = (AuthorizationRequest) xs.Deserialize(request); |
62 | 62 | ||
63 | string message = String.Empty; | 63 | string message = String.Empty; |
64 | bool authorized = m_AuthorizationService.IsAuthorizedForRegion(Authorization.ID, Authorization.FirstName, Authorization.SurName, Authorization.RegionID, out message); | 64 | bool isLocal = false; |
65 | bool authorized = m_AuthorizationService.IsAuthorizedForRegion(Authorization.ID, Authorization.FirstName, Authorization.SurName, Authorization.RegionID, out message, out isLocal); | ||
65 | 66 | ||
66 | AuthorizationResponse result = new AuthorizationResponse(authorized, Authorization.ID + " has been authorized"); | 67 | AuthorizationResponse result = new AuthorizationResponse(authorized, Authorization.ID + " has been authorized"); |
67 | 68 | ||