mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 07:50:25 +08:00
otp: 样式优化
This commit is contained in:
@@ -109,7 +109,7 @@ func (p *procinstAppImpl) CancelProc(ctx context.Context, procinstId uint64) err
|
||||
if la == nil {
|
||||
return errorx.NewBiz("no login")
|
||||
}
|
||||
if procinst.CreatorId != consts.AdminId && procinst.CreatorId != la.Id {
|
||||
if la.Id != consts.AdminId && procinst.CreatorId != la.Id {
|
||||
return errorx.NewBizI(ctx, imsg.ErrProcinstCancelSelf)
|
||||
}
|
||||
procinst.Status = entity.ProcinstStatusCancelled
|
||||
|
||||
Reference in New Issue
Block a user