Skip to content

Commit

Permalink
[apache#5932] improve(CLI): Fix the CLI delete the anonymous user
Browse files Browse the repository at this point in the history
fix some bug.
  • Loading branch information
Abyss-lord committed Feb 10, 2025
1 parent fe2ac00 commit 8650f07
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

package org.apache.gravitino.cli.commands;

import org.apache.gravitino.auth.AuthConstants;
import org.apache.gravitino.cli.AreYouSure;
import org.apache.gravitino.cli.ErrorMessages;
import org.apache.gravitino.client.GravitinoClient;
Expand Down Expand Up @@ -53,7 +54,7 @@ public DeleteUser(
public void handle() {
boolean deleted = false;

if ("anonymous".equalsIgnoreCase(user)) {
if (AuthConstants.ANONYMOUS_USER.equalsIgnoreCase(user)) {
exitWithError(ErrorMessages.DELETE_ANONYMOUS_USER);
}

Expand Down

0 comments on commit 8650f07

Please sign in to comment.