作者 yangfu

权限修改

... ... @@ -1921,11 +1921,17 @@ func Permission(header *protocol.RequestHeader, request *protocol.PermissionRequ
//审核通过 或者 已经被人审核过 就不能编辑了
if len(chance.ApproveData) > 0 || chance.ReviewStatus == protocol.ReviewStatusPass {
rsp.EditChance = 0
} else if chance.ReviewStatus == protocol.ReviewStatusAuditging { //未有人审核过
rsp.EditChance = 1
rsp.EditPublicStatus = 0
rsp.EditScore = 0
}
return
} else {
if chance.ReviewStatus == protocol.ReviewStatusReturn { //退回的机会不可编辑
rsp.EditChance = 0
rsp.EditPublicStatus = 0
rsp.EditScore = 0
}
}
... ...