fix 管理员失效BUG
This commit is contained in:
parent
1ccc0b5bf5
commit
7bc76ba785
@ -316,9 +316,7 @@ var codeSignals = []CodeSignal{
|
||||
Admin: true,
|
||||
Handle: func(sender *Sender) interface{} {
|
||||
ctt := sender.JoinContens()
|
||||
db.Delete(&UserAdmin{
|
||||
Content: ctt,
|
||||
}).Where(ctt)
|
||||
RemoveUserAdmin(ctt)
|
||||
return "已取消管理员"
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user