/// <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; } }
public void SetSecurityActions(Web.UI.RockBlock blockControl) { // SecurityActions is now loaded on demand, so we don't need to do anything here return; }