Beispiel #1
0
        /// <summary>
        /// Sets the security actions.
        /// </summary>
        /// <param name="blockControl">The block control.</param>
        public void SetSecurityActions(Web.UI.RockBlock blockControl)
        {
            lock ( _obj )
            {
                if (CheckedSecurityActions)
                {
                    return;
                }

                SecurityActions = new ConcurrentDictionary <string, string>();
                foreach (var action in blockControl.GetSecurityActionAttributes())
                {
                    SecurityActions.TryAdd(action.Key, action.Value);
                }
                CheckedSecurityActions = true;
            }
        }
Beispiel #2
0
 public void SetSecurityActions(Web.UI.RockBlock blockControl)
 {
     // SecurityActions is now loaded on demand, so we don't need to do anything here
     return;
 }