mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
do not allow estate bans to grid admins
This commit is contained in:
@@ -972,8 +972,12 @@ namespace OpenSim.Region.CoreModules.World.Estate
|
||||
|
||||
if ((estateAccessType & 64) != 0) // Ban add
|
||||
{
|
||||
|
||||
if(thisSettings.EstateBansCount() >= (int)Constants.EstateAccessLimits.EstateBans)
|
||||
bool userIsAdmin = Scene.Permissions.IsAdministrator(user);
|
||||
if(userIsAdmin)
|
||||
{
|
||||
remote_client.SendAlertMessage("Cannot ban a Administrator");
|
||||
}
|
||||
else if(thisSettings.EstateBansCount() >= (int)Constants.EstateAccessLimits.EstateBans)
|
||||
{
|
||||
if(!sentBansFull)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user