Merge pull request #217 from jpechane/multiple-grants
DBZ-229 - check all privilege records
This commit is contained in:
commit
27e3ae52fd
@ -158,7 +158,7 @@ public boolean userHasPrivileges(String grantName) {
|
||||
AtomicBoolean result = new AtomicBoolean(false);
|
||||
try {
|
||||
jdbc.query("SHOW GRANTS FOR CURRENT_USER", rs -> {
|
||||
if (rs.next()) {
|
||||
while (rs.next()) {
|
||||
String grants = rs.getString(1);
|
||||
logger.debug(grants);
|
||||
if (grants == null) return;
|
||||
|
Loading…
Reference in New Issue
Block a user