From d263a044b1ebb13477b2b391637ccc2da4368838 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sun, 25 Nov 2007 04:52:14 +0000 Subject: * Added the ability to restart your individual sims from within them using the estate tools. * The sims properly restart, however they don't yet notify the existing avatars that they are up. To see the sim again, you'll need to log-out and back in until I can figure out how to get the proper data to the sims and to the avatar so they reconnect again. --- OpenSim/Region/Environment/PermissionManager.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'OpenSim/Region/Environment/PermissionManager.cs') diff --git a/OpenSim/Region/Environment/PermissionManager.cs b/OpenSim/Region/Environment/PermissionManager.cs index 412c6e7..6efa116 100644 --- a/OpenSim/Region/Environment/PermissionManager.cs +++ b/OpenSim/Region/Environment/PermissionManager.cs @@ -306,6 +306,14 @@ namespace OpenSim.Region.Environment return GenericEstatePermission(user); } + public virtual bool CanRestartSim(LLUUID user) + { + // Since this is potentially going on a grid... + + //return GenericEstatePermission(AgentId); + return m_scene.RegionInfo.MasterAvatarAssignedUUID == user; + } + #endregion #region Parcel Permissions -- cgit v1.1