change OSSL enable option GOD to use IsGod, so it means a active god, as my original idea
							parent
							
								
									2798adcdcd
								
							
						
					
					
						commit
						e2167716aa
					
				| 
						 | 
				
			
			@ -415,14 +415,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
 | 
			
		|||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                    //Only gods may use the function
 | 
			
		||||
                    if (m_FunctionPerms[function].AllowedOwnerClasses.Contains("GOD"))
 | 
			
		||||
                    {
 | 
			
		||||
                        if (World.Permissions.IsGod(ownerID))
 | 
			
		||||
                        {
 | 
			
		||||
                            return String.Empty;
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                    //Only grid gods may use the function
 | 
			
		||||
                    if (m_FunctionPerms[function].AllowedOwnerClasses.Contains("GRID_GOD"))
 | 
			
		||||
| 
						 | 
				
			
			@ -433,6 +425,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
 | 
			
		|||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                    //Only active gods may use the function
 | 
			
		||||
                    if (m_FunctionPerms[function].AllowedOwnerClasses.Contains("GOD"))
 | 
			
		||||
                    {
 | 
			
		||||
                        ScenePresence sp = World.GetScenePresence(ownerID);
 | 
			
		||||
                        if (sp != null && !sp.IsDeleted && sp.IsGod)
 | 
			
		||||
                        {
 | 
			
		||||
                            return String.Empty;
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                    if (!m_FunctionPerms[function].AllowedCreators.Contains(m_item.CreatorID))
 | 
			
		||||
                        return(
 | 
			
		||||
                            String.Format("{0} permission denied. Script creator is not in the list of users allowed to execute this function and prim owner also has no permission.",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -38,7 +38,7 @@
 | 
			
		|||
  ;    against the owner of the object containing the script.
 | 
			
		||||
  ;    The comma separated entries in the list may be one of:
 | 
			
		||||
  ;           "GRID_GOD" -- enable for users with UserLevel >= 200
 | 
			
		||||
  ;           "GOD" -- enable for users with any type of god rights
 | 
			
		||||
  ;           "GOD" -- enable for present and with active god power
 | 
			
		||||
  ;           "ESTATE_MANAGER" -- enable for estate manager
 | 
			
		||||
  ;           "ESTATE_OWNER" -- enable for estate owner
 | 
			
		||||
  ;           "PARCEL_OWNER" -- enable for parcel owner
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue