Skip to content

Commit fa84291

Browse files
committed
disable /help account plot:True check for other users
1 parent d4ea8a4 commit fa84291

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/main/java/net/javadiscord/javabot/systems/help/commands/HelpAccountSubcommand.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import net.javadiscord.javabot.systems.help.dao.HelpTransactionRepository;
1919
import net.javadiscord.javabot.systems.help.dao.HelpTransactionRepository.MonthInYear;
2020
import net.javadiscord.javabot.systems.help.model.HelpAccount;
21-
import net.javadiscord.javabot.util.Checks;
2221
import net.javadiscord.javabot.util.ExceptionLogger;
2322
import net.javadiscord.javabot.util.Pair;
2423
import net.javadiscord.javabot.util.Plotter;
@@ -75,11 +74,6 @@ public void execute(@NotNull SlashCommandInteractionEvent event) {
7574
User user = event.getOption("user", event::getUser, OptionMapping::getAsUser);
7675
boolean plot = event.getOption("plot", false, OptionMapping::getAsBoolean);
7776

78-
if (plot && user.getIdLong()!=event.getUser().getIdLong() && !Checks.hasStaffRole(botConfig, event.getMember())) {
79-
Responses.error(event, "You can only plot your own help XP history.").queue();
80-
return;
81-
}
82-
8377
long totalThanks = dbActions.count(
8478
"SELECT COUNT(id) FROM help_channel_thanks WHERE helper_id = ?",
8579
s -> s.setLong(1, user.getIdLong())

0 commit comments

Comments
 (0)