Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Erisa committed Nov 9, 2024
2 parents 4a12e16 + b5a93f0 commit 9e354d4
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 9e354d4

Please sign in to comment.