Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-group
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujiebin
hilo-group
Commits
8f1ffffb
Commit
8f1ffffb
authored
May 19, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
超管处理下麦
parent
0e7f49fb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
mic.go
domain/model/group_m/mic.go
+9
-4
No files found.
domain/model/group_m/mic.go
View file @
8f1ffffb
...
@@ -291,12 +291,17 @@ func (micUser *MicUser) leave(operateUserId uint64, operateExternalId string) er
...
@@ -291,12 +291,17 @@ func (micUser *MicUser) leave(operateUserId uint64, operateExternalId string) er
}
}
//
//
externalId
:=
micUser
.
ExternalId
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
micUser
.
ExternalId
!=
operateExternalId
{
//检查权限,管理人权限, 不过不拥有管理人权限,则抛出错误
//检查权限,管理人权限, 不过不拥有管理人权限,则抛出错误
if
err
:=
MgrPermission
(
micUser
.
model
,
micUser
.
GroupUuid
,
operateUserId
,
micUser
.
UserId
);
err
!=
nil
{
if
err
:=
MgrPermission
(
micUser
.
model
,
micUser
.
GroupUuid
,
operateUserId
,
micUser
.
UserId
);
err
!=
nil
{
return
err
return
err
}
}
}
}
}
//设置值到redis
//设置值到redis
//redisCli.GetRedis().ScriptFlush(context.Background())
//redisCli.GetRedis().ScriptFlush(context.Background())
script
:=
strings
.
Replace
(
strings
.
Replace
(
script
:=
strings
.
Replace
(
strings
.
Replace
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment