Skip to content

Commit e1a6cee

Browse files
committed
fix:auth bug
1 parent 4d98905 commit e1a6cee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/app/managers/handler/v1/managers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ func HandleAddManager(r flamego.Render, c flamego.Context, req dto.AddManagerReq
186186
response.InValidParam(r, errs)
187187
return
188188
}
189-
if authInfo.Uid != req.StaffId {
189+
if authInfo.Uid == req.StaffId {
190190
response.HTTPFail(r, 403001, "不能添加自己")
191191
return
192192
}

0 commit comments

Comments
 (0)