OpenSim.Region.ScriptEngine.Shared.Api.OSSL_Api.ShoutErrorOnLackingOwnerPerms C# (CSharp) Method

ShoutErrorOnLackingOwnerPerms() protected method

protected ShoutErrorOnLackingOwnerPerms ( int perms, string errorPrefix ) : bool
perms int
errorPrefix string
return bool
        protected bool ShoutErrorOnLackingOwnerPerms(int perms, string errorPrefix)
        {
            m_host.AddScriptLPS(1);
            bool fail = false;
            if (m_item.PermsGranter != m_host.OwnerID)
            {
                fail = true;
                OSSLShoutError(string.Format("{0}. Permissions not granted to owner.", errorPrefix));
            }
            else if ((m_item.PermsMask & perms) == 0)
            {
                fail = true;
                OSSLShoutError(string.Format("{0}. Permissions not granted.", errorPrefix));
            }

            return fail;
        }
OSSL_Api