1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 11:07:40 +08:00

Merge pull request #40 from wdvxdr1123/master

fix 不禁言管理员
This commit is contained in:
Mrs4s 2020-09-15 15:10:55 +08:00 committed by GitHub
commit 1607cdf2bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -301,7 +301,7 @@ func (m *GroupMemberInfo) Manageable() bool {
if self == Member || m.Permission == Owner {
return false
}
return m.Permission != Administrator
return m.Permission != Administrator || self == Owner
}
func (r *UserJoinGroupRequest) Accept() {