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