瀏覽代碼

feat:企业版 机构中心

wangshan 2 年之前
父節點
當前提交
4fd47e8403
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      entity/user.go

+ 4 - 0
entity/user.go

@@ -108,6 +108,10 @@ func (m *WorkDesktopMenu) AutoUserPowerInfo() map[string]int {
 		//企业信息
 		if m.EntId > 0 {
 			UserPowerMap["702"] = 1
+			//机构中心  由企业 且 是企业版
+			if m.PositionType > 0 {
+				UserPowerMap["901"] = 1
+			}
 		}
 		entInfo := userPowers.Ent
 		//商机管理