コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="flags"></param>
        /// <returns></returns>
        public static bool IsWizard(this IFlagContext flags)
        {
            Validation.IsNotNull(flags, "flags");

            return(flags.HasFlag("Wizard"));
        }
コード例 #2
0
        /// <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"));
        }