Example #1
0
        /// <summary>
        /// 是否为 能力中心--用户管理员
        /// </summary>
        /// <returns></returns>
        public static bool IsAdmin()//是否为用户管理员
        {
            M_User_Plat upMod = GetLogin();
            string      rid   = "," + B_Plat_UserRole.SelSuperByCid(upMod.CompID) + ",";

            return(upMod.Plat_Role.Contains(rid));
        }
Example #2
0
 /// <summary>
 /// 检测当前登录用户是否有对应的权限
 /// </summary>
 public static bool AuthCheck(string authname)
 {
     if (B_User_Plat.IsAdmin())
     {
         return(true);
     }
     else
     {
         B_Plat_UserRole urBll = new B_Plat_UserRole();
         return(urBll.AuthCheck(B_User_Plat.GetLogin().Plat_Role, authname));
     }
 }
Example #3
0
 /// <summary>
 /// 检测当前登录用户是否有对应的权限
 /// </summary>
 public bool AuthCheck(string authname)
 {
     if (IsAdmin())
     {
         return(true);
     }
     else
     {
         B_Plat_UserRole urBll = new B_Plat_UserRole();
         return(urBll.AuthCheck(upMod.Plat_Role, authname));
     }
 }