示例#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));
 }
示例#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));
 }
示例#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));
 }