...
|
...
|
@@ -115,13 +115,7 @@ func ValidChancePermission(uid, cid int64, items []*protocol.CommonListItem) (er |
|
|
if chanceUserId == uid {
|
|
|
continue
|
|
|
}
|
|
|
if len(userDIds) == 0 {
|
|
|
if e := models.GetUserDepartmentIds(uid, cid, &userDIds); e != nil {
|
|
|
log.Error(e)
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
if _, e := models.ExitsChanceByDeparmentIds(chanceId, userDIds); e == nil {
|
|
|
if _, e := models.ExitsChanceByDeparmentIds(chanceId, specialDIds); e == nil {
|
|
|
continue
|
|
|
}
|
|
|
if _, e := models.ExitsChanceByAuditUser(chanceId, uid); e == nil {
|
...
|
...
|
|