作者 yangfu

权限验证修改 check3

@@ -163,13 +163,10 @@ func ValidChancePermission(uid, cid int64, items []*protocol.CommonListItem) (er @@ -163,13 +163,10 @@ func ValidChancePermission(uid, cid int64, items []*protocol.CommonListItem) (er
163 } 163 }
164 items[i].ChanceStatus = protocol.ChanceStatusClose 164 items[i].ChanceStatus = protocol.ChanceStatusClose
165 case OpportunityCheckLv3: 165 case OpportunityCheckLv3:
166 - //if chanceUserId == uid {  
167 - // continue  
168 - //}  
169 - if _, ok := checkMap[OpportunityCheckLv2]; ok { //同时存在对部门公开的机会  
170 if chancePublicStatus == protocol.PublicToCompany { 166 if chancePublicStatus == protocol.PublicToCompany {
171 continue 167 continue
172 } 168 }
  169 + if _, ok := checkMap[OpportunityCheckLv2]; ok { //同时存在对部门公开的机会
173 if chancePublicStatus == protocol.PublicToDepartment { 170 if chancePublicStatus == protocol.PublicToDepartment {
174 if len(userDIds) == 0 { 171 if len(userDIds) == 0 {
175 if e := models.GetUserDepartmentIds(uid, cid, &userDIds); e != nil { 172 if e := models.GetUserDepartmentIds(uid, cid, &userDIds); e != nil {