wangshan 2 éve
szülő
commit
df55ef4a66
1 módosított fájl, 4 hozzáadás és 4 törlés
  1. 4 4
      entity/user.go

+ 4 - 4
entity/user.go

@@ -92,17 +92,17 @@ func (m *WorkDesktopMenu) AutoUserPowerInfo() map[string]int {
 						case 1: //新版商机管理
 							UserPowerMap["110"] = 1
 							switch MC.IntAll(entNicheInfo["role_id"]) {
-							case 1: //企业管理员
-								UserPowerMap["111"] = 1
 							case 2: //部门管理员
+								UserPowerMap["111"] = 1
+							case 1: //企业管理员
 								UserPowerMap["112"] = 1
 							}
 						case 0: //老版商机管理
 							UserPowerMap["100"] = 1
 							switch MC.IntAll(entNicheInfo["role_id"]) {
-							case 1: //企业管理员
-								UserPowerMap["101"] = 1
 							case 2: //部门管理员
+								UserPowerMap["101"] = 1
+							case 1: //企业管理员
 								UserPowerMap["102"] = 1
 							}
 						}