requirePermission("getTableDescriptors", Permission.Action.ADMIN);
}
// Otherwise, if the requestor has ADMIN or CREATE privs for all listed tables, the
// request can be granted.
else {
MasterServices masterServices = ctx.getEnvironment().getMasterServices();
for (String tableName: tableNamesList) {
// Do not deny if the table does not exist
byte[] nameAsBytes = Bytes.toBytes(tableName);
try {
masterServices.checkTableModifiable(nameAsBytes);
} catch (TableNotFoundException ex) {
// Skip checks for a table that does not exist
continue;
} catch (TableNotDisabledException ex) {
// We don't care about this