...
|
...
|
@@ -1916,6 +1916,7 @@ func Permission(header *protocol.RequestHeader, request *protocol.PermissionRequ |
|
|
chance *models.Chance
|
|
|
auditProcess []*models.AuditFlowProcess
|
|
|
isApproving bool //是否审核中
|
|
|
company *models.Company
|
|
|
)
|
|
|
rsp = &protocol.PermissionResponse{}
|
|
|
if op, err = agg.GetUserPermission(header.UserId); err == nil {
|
...
|
...
|
@@ -1937,6 +1938,15 @@ func Permission(header *protocol.RequestHeader, request *protocol.PermissionRequ |
|
|
rsp.EditPublicStatus = 1
|
|
|
rsp.EditScore = 1
|
|
|
}
|
|
|
if company, err = models.GetCompanyById(header.CompanyId); err != nil {
|
|
|
log.Error(err)
|
|
|
return
|
|
|
}
|
|
|
//公司管理员有所有权限
|
|
|
if company.AdminId == header.UserId {
|
|
|
allPermission()
|
|
|
return
|
|
|
}
|
|
|
//无权限
|
|
|
noPermission := func() {
|
|
|
rsp.EditChance = 0
|
...
|
...
|
|