Skip to content

Commit 3970f7f

Browse files
authored
Fix arearestrictions for allowed users (#379)
* chore: Update external deps * fix: Override arearestrictions for yolo users
1 parent 355622a commit 3970f7f

File tree

3 files changed

+16
-55
lines changed

3 files changed

+16
-55
lines changed

package-lock.json

Lines changed: 14 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"discord.js": "^12.3.1",
3131
"eslint": "^7.9.0",
3232
"express": "^4.17.1",
33-
"express-mysql-session": "^2.1.4",
33+
"express-mysql-session": "^2.1.6",
3434
"express-rate-limit": "^5.1.3",
3535
"express-session": "^1.17.1",
3636
"extend": "^3.0.2",

src/services/discord.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ class DiscordClient {
9999
const [guilds, guildsFull] = await this.getGuilds();
100100
if (config.discord.allowedUsers.includes(user.id)) {
101101
Object.keys(perms).forEach((key) => perms[key] = true);
102+
perms.areaRestrictions = [];
102103
console.log(`User ${user.username}#${user.discriminator} (${user.id}) in allowed users list, skipping guild and role check.`);
103104
return perms;
104105
}

0 commit comments

Comments
 (0)