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")); }