Skip to content

Commit b3454f1

Browse files
committed
Fixed PermissionNode to check if a user has permission for non guild permission checks...
1 parent 6d15b6d commit b3454f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/mangorage/mangobotcore/api/jda/command/v2/JDAPermissionNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public boolean hasPermission(CommandContext<Message> commandContext) {
8585
return userIds.contains(new GuildUser(guildId, member.getIdLong()));
8686
}
8787
} else {
88-
return userIds.isEmpty() || userIds.contains(new GuildUser(null, commandContext.getContextObject().getAuthor().getIdLong()));
88+
return userIds.contains(new GuildUser(null, commandContext.getContextObject().getAuthor().getIdLong()));
8989
}
9090
}
9191
}

0 commit comments

Comments
 (0)