HBASE-19691 Removes Global(A) requirement for getClusterStatus
Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
fd33b3589e
commit
490728ae7f
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue