Skip to content

Commit

Permalink
Add message when not a sf user
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed Jan 29, 2025
1 parent cffb412 commit 00e9b60
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ public void postConstruct() {
"Generate an auth JWT for the current user",
c -> {
if (!(c.getSource() instanceof SoulFireUser user)) {
c.getSource().sendInfo("Only SoulFire users can generate tokens.");
return Command.SINGLE_SUCCESS;
}

Expand Down

0 comments on commit 00e9b60

Please sign in to comment.