예제 #1
0
파일: RBSecObj.cs 프로젝트: imiyu/DiscUsage
        public bool IsCallerInDemoRole()
        {
            // A real world apps would most likely have a call
            // to ContextUtil.IsSecurityEnabled before any call
            // to IsCallerInRole because IsCallerInRole returns
            // true in all cases when security is disabled

            return(ContextUtil.IsCallerInRole("RBSecurityDemoRole"));
        }