Ejemplo n.º 1
0
 /// <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));
 }
Ejemplo n.º 2
0
 /// <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));
 }
Ejemplo n.º 3
0
 /// <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));
 }