/// <summary> /// Determines if this block is authorized in the specified Lava context. /// </summary> /// <param name="context">The context.</param> /// <returns></returns> protected bool IsAuthorized(ILavaRenderContext context, string commandName) { return(LavaSecurityHelper.IsAuthorized(context, commandName)); }
/// <summary> /// Determines whether the specified command is authorized within the context. /// </summary> /// <param name="context">The context.</param> /// <param name="command">The command.</param> /// <returns> /// <c>true</c> if the specified command is authorized; otherwise, <c>false</c>. /// </returns> public static bool IsAuthorized(ILavaRenderContext context, string command) { return(LavaSecurityHelper.IsAuthorized(context, command)); }
/// <summary> /// Determines if this block is authorized in the specified Lava context. /// </summary> /// <param name="context">The context.</param> /// <returns></returns> protected bool IsAuthorized(ILavaRenderContext context) { return(LavaSecurityHelper.IsAuthorized(context, this.SourceElementName)); }