Skip to content

Commit a353ad3

Browse files
committed
HBASE-28868 Add missing permission check for updateRSGroupConfig in branch-2 (#6277)
Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit cf9c1d5)
1 parent 09b3d32 commit a353ad3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminEndpoint.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ public void updateRSGroupConfig(RpcController controller, UpdateRSGroupConfigReq
447447
if (master.getMasterCoprocessorHost() != null) {
448448
master.getMasterCoprocessorHost().preUpdateRSGroupConfig(groupName, configuration);
449449
}
450+
checkPermission("updateRSGroupConfig");
450451
groupAdminServer.updateRSGroupConfig(groupName, configuration);
451452
if (master.getMasterCoprocessorHost() != null) {
452453
master.getMasterCoprocessorHost().postUpdateRSGroupConfig(groupName, configuration);

0 commit comments

Comments
 (0)