mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-25 16:30:26 +08:00
实现集群看板
This commit is contained in:
@@ -163,6 +163,7 @@ func (this *BaseService) ValidateNodeId(ctx context.Context, roles ...rpcutils.U
|
||||
return rpcutils.UserTypeNone, 0, errors.New("authenticate timeout, please check your system clock")
|
||||
}
|
||||
|
||||
role = apiToken.Role
|
||||
switch apiToken.Role {
|
||||
case rpcutils.UserTypeNode:
|
||||
nodeIntId, err = models.SharedNodeDAO.FindEnabledNodeIdWithUniqueId(nil, nodeId)
|
||||
|
||||
Reference in New Issue
Block a user