mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Restructure god level and permissions
Create a class GodController which controls all aspects of god level, viewer modes and user levels at ScenePresence level.
This commit is contained in:
@@ -756,7 +756,7 @@ namespace OpenSim.Groups
|
||||
|
||||
if (avatar != null)
|
||||
{
|
||||
if (avatar.UserLevel < m_levelGroupCreate)
|
||||
if (avatar.GodController.UserLevel < m_levelGroupCreate)
|
||||
{
|
||||
remoteClient.SendCreateGroupReply(UUID.Zero, false, String.Format("Insufficient permissions to create a group. Requires level {0}", m_levelGroupCreate));
|
||||
return UUID.Zero;
|
||||
|
||||
Reference in New Issue
Block a user