Commit 8f1ffffb authored by hujiebin's avatar hujiebin

超管处理下麦

parent 0e7f49fb
...@@ -291,10 +291,15 @@ func (micUser *MicUser) leave(operateUserId uint64, operateExternalId string) er ...@@ -291,10 +291,15 @@ func (micUser *MicUser) leave(operateUserId uint64, operateExternalId string) er
} }
// //
externalId := micUser.ExternalId externalId := micUser.ExternalId
if micUser.ExternalId != operateExternalId { // 超管处理
//检查权限,管理人权限, 不过不拥有管理人权限,则抛出错误 if flag, err := user_m.IsSuperManagerV2(micUser.model, operateUserId, micUser.UserId); err != nil {
if err := MgrPermission(micUser.model, micUser.GroupUuid, operateUserId, micUser.UserId); err != nil { return err
return err } else if !flag {
if micUser.ExternalId != operateExternalId {
//检查权限,管理人权限, 不过不拥有管理人权限,则抛出错误
if err := MgrPermission(micUser.model, micUser.GroupUuid, operateUserId, micUser.UserId); err != nil {
return err
}
} }
} }
//设置值到redis //设置值到redis
......
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