Skip to content

Commit

Permalink
Refactor AuthorityConstants.PRIVILEGE_WILDCARD (#29609)
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu authored Dec 31, 2023
1 parent 299f5e5 commit 1085efa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class AuthorityConstants {

public static final String SUPER_PRIVILEGE = "*";
public static final String PRIVILEGE_WILDCARD = "*";
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ public final class DatabasePermittedPrivileges implements ShardingSpherePrivileg

@Override
public boolean hasPrivileges(final String database) {
return databases.contains(AuthorityConstants.SUPER_PRIVILEGE) || databases.contains(database);
return databases.contains(AuthorityConstants.PRIVILEGE_WILDCARD) || databases.contains(database);
}
}

0 comments on commit 1085efa

Please sign in to comment.