正在显示
1 个修改的文件
包含
1 行增加
和
7 行删除
| @@ -115,13 +115,7 @@ func ValidChancePermission(uid, cid int64, items []*protocol.CommonListItem) (er | @@ -115,13 +115,7 @@ func ValidChancePermission(uid, cid int64, items []*protocol.CommonListItem) (er | ||
| 115 | if chanceUserId == uid { | 115 | if chanceUserId == uid { |
| 116 | continue | 116 | continue |
| 117 | } | 117 | } |
| 118 | - if len(userDIds) == 0 { | ||
| 119 | - if e := models.GetUserDepartmentIds(uid, cid, &userDIds); e != nil { | ||
| 120 | - log.Error(e) | ||
| 121 | - return | ||
| 122 | - } | ||
| 123 | - } | ||
| 124 | - if _, e := models.ExitsChanceByDeparmentIds(chanceId, userDIds); e == nil { | 118 | + if _, e := models.ExitsChanceByDeparmentIds(chanceId, specialDIds); e == nil { |
| 125 | continue | 119 | continue |
| 126 | } | 120 | } |
| 127 | if _, e := models.ExitsChanceByAuditUser(chanceId, uid); e == nil { | 121 | if _, e := models.ExitsChanceByAuditUser(chanceId, uid); e == nil { |
-
请 注册 或 登录 后发表评论