Skip to content

Commit

Permalink
Dev bypass fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GDColon committed Nov 1, 2024
1 parent 87c7b11 commit b5a93f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,10 +505,10 @@ app.post("/api/importfrombot", async function(req, res) {
let isDev = tools.isDev(user)

let foundGuild = guilds.find(x => x.id == guildID)
if (!foundGuild && isDev) return res.apiError("Not in server!")
if (!foundGuild && !isDev) return res.apiError("Not in server!")

let canManage = canManageServer(foundGuild)
if (!canManage && isDev) return res.apiError("Manage server permission required!")
if (!canManage && !isDev) return res.apiError("Manage server permission required!")

let importSettings = req.body.import || {}
let bot = importSettings.bot
Expand Down

0 comments on commit b5a93f0

Please sign in to comment.