*Complete redo of the permissions module

*Removed hardcoded permissions checks
*Added permissions checks where needed
This commit is contained in:
mingchen
2008-05-13 16:22:57 +00:00
parent 8293be6811
commit 32785921d0
15 changed files with 887 additions and 641 deletions

View File

@@ -1146,13 +1146,20 @@ namespace OpenSim.Region.Environment.Scenes
m_log.Info("[SCENE]: Loading land objects from storage");
List<LandData> landData = m_storageManager.DataStore.LoadLandObjects(regionID);
if (landData.Count == 0)
if (LandChannel != null)
{
LandChannel.NoLandDataFromStorage();
if (landData.Count == 0)
{
LandChannel.NoLandDataFromStorage();
}
else
{
LandChannel.IncomingLandObjectsFromStorage(landData);
}
}
else
{
LandChannel.IncomingLandObjectsFromStorage(landData);
m_log.Error("[SCENE]: Land Channel is not defined. Cannot load from storage!");
}
}