mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
config modify
This commit is contained in:
parent
f65e4aad63
commit
26f0234e3d
@ -66,7 +66,7 @@ func (s *friendServer) ImportFriend(ctx context.Context, req *pbFriend.ImportFri
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !utils.IsContain(claims.UID, config.Config.Manager.AppManagerUid) {
|
if !utils.IsContain(claims.UID, config.Config.Manager.AppManagerUid) {
|
||||||
log.Error(req.Token, req.OperationID, "not manager uid", claims.UID)
|
log.NewError(req.OperationID, "not manager uid", claims.UID)
|
||||||
c.ErrorCode = config.ErrAddFriend.ErrCode
|
c.ErrorCode = config.ErrAddFriend.ErrCode
|
||||||
c.ErrorMsg = "not authorized"
|
c.ErrorMsg = "not authorized"
|
||||||
return &pbFriend.ImportFriendResp{CommonResp: &c, FailedUidList: req.UidList}, nil
|
return &pbFriend.ImportFriendResp{CommonResp: &c, FailedUidList: req.UidList}, nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user