Merge pull request #217 from jpechane/multiple-grants

DBZ-229 - check all privilege records
This commit is contained in:
Gunnar Morling 2017-04-26 17:12:21 +02:00 committed by GitHub
commit 27e3ae52fd

View File

@ -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;