deardeng commented on code in PR #42504:
URL: https://github.com/apache/doris/pull/42504#discussion_r1818027968
##########
fe/fe-core/src/main/java/org/apache/doris/mysql/privilege/UserProperty.java:
##########
@@ -401,6 +390,25 @@ public void update(List<Pair<String, String>> properties,
boolean isReplay) thro
defaultCloudCluster = newDefaultCloudCluster;
}
+ private String checkCloudDefaultCluster(String[] keyArr, String value,
String defaultComputeGroup)
+ throws ComputeGroupException, DdlException {
+ // check cluster auth
+ if
(!Env.getCurrentEnv().getAuth().checkCloudPriv(UserIdentity.fromString(qualifiedUser),
+ value, PrivPredicate.USAGE, ResourceTypeEnum.CLUSTER)) {
+ throw new ComputeGroupException(String.format("set default compute
group failed, "
+ + "user {} must first have auth to use this compute group ",
value),
Review Comment:
fixed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]