Skip to content

Commit

Permalink
[Fix](executor)normal group not auth #34377
Browse files Browse the repository at this point in the history
  • Loading branch information
wangbo authored May 2, 2024
1 parent d71fab8 commit e9d2442
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
import org.apache.doris.persist.PrivInfo;
import org.apache.doris.qe.ConnectContext;
import org.apache.doris.resource.Tag;
import org.apache.doris.resource.workloadgroup.WorkloadGroupMgr;
import org.apache.doris.thrift.TPrivilegeStatus;

import com.google.common.base.Joiner;
Expand Down Expand Up @@ -390,6 +391,11 @@ public boolean checkWorkloadGroupPriv(UserIdentity currentUser, String workloadG
readLock();
try {
Set<Role> roles = getRolesByUserWithLdap(currentUser);
// currently stream load not support ip based auth, so normal should not auth temporary
// need remove later
if (WorkloadGroupMgr.DEFAULT_GROUP_NAME.equals(workloadGroupName)) {
return true;
}
for (Role role : roles) {
if (role.checkWorkloadGroupPriv(workloadGroupName, wanted)) {
return true;
Expand Down

0 comments on commit e9d2442

Please sign in to comment.