Allow bypassing perms dialog (console only)

avinationmerge
Melanie 2012-10-14 17:31:29 +02:00
parent de3ff44406
commit ce26730d4e
1 changed files with 4 additions and 0 deletions

View File

@ -3795,6 +3795,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (World.GetExtraSetting("auto_grant_attach_perms") == "true") if (World.GetExtraSetting("auto_grant_attach_perms") == "true")
implicitPerms = ScriptBaseClass.PERMISSION_ATTACH; implicitPerms = ScriptBaseClass.PERMISSION_ATTACH;
} }
if (World.GetExtraSetting("auto_grant_all_perms") == "true")
{
implicitPerms = perm;
}
} }
if ((perm & (~implicitPerms)) == 0) // Requested only implicit perms if ((perm & (~implicitPerms)) == 0) // Requested only implicit perms