AnimatGuiCtrls.Controls.PropertyBag.PropertySpecCollection.SecurityAllow C# (CSharp) Method

SecurityAllow() protected method

protected SecurityAllow ( PropertySpec value ) : bool
value PropertySpec
return bool
            protected bool SecurityAllow(PropertySpec value)
            {
                //First lets check the security settings for this property spec
                //to determine if it should be seen or not. We will use the object name
                //and the propertyspec name to look for a matching security item.
                if (m_Parent != null && m_Parent.SecurityMgr != null)
                {
                    SecurityItem item;
                    if (m_Parent.SecurityMgr.Properties.TryGetValue(m_Parent.ObjectName + "." + value.PropertyName, out item))
                        return item.Allow;
                }

                return true;
            }