Ejemplo n.º 1
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));
     }
 }
Ejemplo n.º 2
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));
     }
 }