作者 yangfu

机会权限过滤

@@ -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 {