HBASE-19691 Removes Global(A) requirement for getClusterStatus

Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
Josh Elser 2018-01-03 16:57:12 -05:00
parent fd33b3589e
commit 490728ae7f
2 changed files with 2 additions and 8 deletions

View File

@ -2741,10 +2741,4 @@ public class AccessController extends BaseMasterAndRegionObserver
String groupName) throws IOException {
requirePermission("balanceRSGroup", Action.ADMIN);
}
@Override
public void preGetClusterStatus(final ObserverContext<MasterCoprocessorEnvironment> ctx)
throws IOException {
requirePermission("getClusterStatus", Action.ADMIN);
}
}

View File

@ -3051,7 +3051,7 @@ public class TestAccessController extends SecureTestUtil {
}
};
verifyAllowed(action, SUPERUSER, USER_ADMIN);
verifyDenied(action, USER_CREATE, USER_RW, USER_RO, USER_NONE, USER_OWNER);
verifyAllowed(
action, SUPERUSER, USER_ADMIN, USER_CREATE, USER_RW, USER_RO, USER_NONE, USER_OWNER);
}
}