mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-29 03:20:24 +08:00
变更版本
This commit is contained in:
@@ -35,7 +35,7 @@ func (this *BaseService) ValidateAdminAndUser(ctx context.Context, requireAdminI
|
||||
switch reqUserType {
|
||||
case rpcutils.UserTypeAdmin:
|
||||
adminId = reqUserId
|
||||
if adminId <= 0 {
|
||||
if adminId < 0 { // 允许AdminId = 0
|
||||
err = errors.New("invalid 'adminId'")
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user