Potential mitigation
This commit is contained in:
parent
73c103a391
commit
7f70992543
@ -29,9 +29,8 @@ func IndexHandler(ctx *gin.Context) {
|
|||||||
adminGuildIds := table.GetAdminGuilds(userId)
|
adminGuildIds := table.GetAdminGuilds(userId)
|
||||||
for _, guild := range table.GetGuilds(userIdStr) {
|
for _, guild := range table.GetGuilds(userIdStr) {
|
||||||
guildId, err := strconv.ParseInt(guild.Id, 10, 64)
|
guildId, err := strconv.ParseInt(guild.Id, 10, 64)
|
||||||
if err != nil {
|
if err != nil { // I think this happens when a server was deleted? We should just skip though.
|
||||||
ctx.String(500, err.Error())
|
continue
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if guild.Owner || utils.Contains(adminGuildIds, guildId) {
|
if guild.Owner || utils.Contains(adminGuildIds, guildId) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user