正在显示
1 个修改的文件
包含
8 行增加
和
0 行删除
@@ -1947,6 +1947,8 @@ func Permission(header *protocol.RequestHeader, request *protocol.PermissionRequ | @@ -1947,6 +1947,8 @@ func Permission(header *protocol.RequestHeader, request *protocol.PermissionRequ | ||
1947 | if err == orm.ErrNoRows { | 1947 | if err == orm.ErrNoRows { |
1948 | if chance.ReviewStatus != protocol.ReviewStatusPass { | 1948 | if chance.ReviewStatus != protocol.ReviewStatusPass { |
1949 | rsp.EditChance = 0 | 1949 | rsp.EditChance = 0 |
1950 | + rsp.EditPublicStatus = 0 | ||
1951 | + rsp.EditScore = 0 | ||
1950 | } | 1952 | } |
1951 | err = nil | 1953 | err = nil |
1952 | return | 1954 | return |
@@ -1959,12 +1961,18 @@ func Permission(header *protocol.RequestHeader, request *protocol.PermissionRequ | @@ -1959,12 +1961,18 @@ func Permission(header *protocol.RequestHeader, request *protocol.PermissionRequ | ||
1959 | break | 1961 | break |
1960 | } | 1962 | } |
1961 | } | 1963 | } |
1964 | + //审核进行中 | ||
1962 | if isApproving { | 1965 | if isApproving { |
1963 | rsp.EditChance = 1 | 1966 | rsp.EditChance = 1 |
1964 | } else if chance.ReviewStatus == protocol.ReviewStatusAuditging && len(auditProcess) > 0 { | 1967 | } else if chance.ReviewStatus == protocol.ReviewStatusAuditging && len(auditProcess) > 0 { |
1965 | rsp.EditChance = 0 | 1968 | rsp.EditChance = 0 |
1966 | log.Debug(fmt.Sprintf("用户:%v 审核过,并且当前机会在审核中 编辑权限:false", header.UserId)) | 1969 | log.Debug(fmt.Sprintf("用户:%v 审核过,并且当前机会在审核中 编辑权限:false", header.UserId)) |
1967 | } | 1970 | } |
1971 | + if chance.ReviewStatus == protocol.ReviewStatusPass && len(auditProcess) > 0 { //已通过的机会 并且是审批人 有所有编辑权限 | ||
1972 | + rsp.EditChance = 1 | ||
1973 | + rsp.EditPublicStatus = 1 | ||
1974 | + rsp.EditScore = 1 | ||
1975 | + } | ||
1968 | } | 1976 | } |
1969 | } | 1977 | } |
1970 | return | 1978 | return |
-
请 注册 或 登录 后发表评论