Пример #1
0
 /// <summary>
 /// 根据页面操作码判断权限
 /// </summary>
 /// <param name="operateCode"></param>
 /// <returns></returns>
 public static bool AccessCheck(OperateCode operateCode)
 {
     return(PEContext.Current.Admin.IsSuperAdmin || IsInRole(dal.GetRoleListByOperateCode(operateCode)));
 }