Commit 8f1ffffb authored by hujiebin's avatar hujiebin

超管处理下麦

parent 0e7f49fb
......@@ -291,12 +291,17 @@ func (micUser *MicUser) leave(operateUserId uint64, operateExternalId string) er
}
//
externalId := micUser.ExternalId
// 超管处理
if flag, err := user_m.IsSuperManagerV2(micUser.model, operateUserId, micUser.UserId); err != nil {
return err
} else if !flag {
if micUser.ExternalId != operateExternalId {
//检查权限,管理人权限, 不过不拥有管理人权限,则抛出错误
if err := MgrPermission(micUser.model, micUser.GroupUuid, operateUserId, micUser.UserId); err != nil {
return err
}
}
}
//设置值到redis
//redisCli.GetRedis().ScriptFlush(context.Background())
script := strings.Replace(strings.Replace(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment