mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 02:42:19 +08:00
fix: fix the checkAdminV3
This commit is contained in:
parent
f971a8ba54
commit
b9860563b5
@ -38,7 +38,7 @@ func CheckAccessV3(ctx context.Context, ownerUserID string) (err error) {
|
|||||||
if utils.IsContain(opUserID, config.Config.Manager.UserID) {
|
if utils.IsContain(opUserID, config.Config.Manager.UserID) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
if utils.IsContain(opUserID, config.Config.Manager.UserID) {
|
if utils.IsContain(opUserID, config.Config.IMAdmin.UserID) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
if opUserID == ownerUserID {
|
if opUserID == ownerUserID {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user