/// <summary> /// /// </summary> /// <param name="flags"></param> /// <returns></returns> public static bool IsWizard(this IFlagContext flags) { Validation.IsNotNull(flags, "flags"); return(flags.HasFlag("Wizard")); }
/// <summary> /// User has the proper flags to be a builder /// </summary> public static bool IsBuilder(this IFlagContext flags) { Validation.IsNotNull(flags, "flags"); return(flags.IsAdmin() || flags.HasFlag("Builder")); }