private int GetUserRight() { if (IdentityUser.CheckPermission("SuperAdmins")) { return(-1); } else if (IdentityUser.CheckPermission("OAAdmin")) { return(1); } else if (IdentityUser.CheckPermission("ERPAdmin")) { return(2); } return(0); }