|
@@ -130,6 +130,12 @@ func (m *WorkDesktopMenu) AutoUserPowerInfo() map[string]int {
|
|
|
if m.PositionType > 0 {
|
|
|
UserPowerMap["901"] = 1
|
|
|
}
|
|
|
+ switch entInfo.EntRoleId {
|
|
|
+ case 1: //企业管理员
|
|
|
+ UserPowerMap["902"] = 1
|
|
|
+ case 2: //部门管理员
|
|
|
+ UserPowerMap["903"] = 1
|
|
|
+ }
|
|
|
}
|
|
|
if entNiche.Status > 0 && entNiche.IsEntPower > 0 {
|
|
|
//entInfo.EntRoleId 1:企业管理员 2:部门管理员
|
|
@@ -183,6 +189,12 @@ func (m *WorkDesktopMenu) AutoUserPowerInfo() map[string]int {
|
|
|
//新免费用户
|
|
|
UserPowerMap["301"] = MC.If(free.IsUpgrade, 1, 0).(int)
|
|
|
}
|
|
|
+ switch entInfo.EntRoleId {
|
|
|
+ case 1: //企业管理员
|
|
|
+ UserPowerMap["302"] = 1
|
|
|
+ case 2: //部门管理员
|
|
|
+ UserPowerMap["303"] = 1
|
|
|
+ }
|
|
|
}
|
|
|
//----------其他-----------
|
|
|
//广东移动DICT
|