Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
zddr committed Sep 24, 2024
1 parent 0c667fb commit 9d8feaf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public boolean checkGlobalPriv(UserIdentity currentUser, PrivPredicate wanted) {
return checkGlobalPrivInternal(currentUser, wanted, checkedPrivs);
}

public boolean checkGlobalPrivInternal(UserIdentity currentUser, PrivPredicate wanted, PrivBitSet checkedPrivs) {
private boolean checkGlobalPrivInternal(UserIdentity currentUser, PrivPredicate wanted, PrivBitSet checkedPrivs) {
RangerDorisResource resource = new RangerDorisResource(DorisObjectType.GLOBAL, GLOBAL_PRIV_FIXED_NAME);
return checkPrivilege(currentUser, wanted, resource, checkedPrivs);
}
Expand All @@ -148,7 +148,7 @@ public boolean checkCtlPriv(UserIdentity currentUser, String ctl, PrivPredicate
return false;
}

public boolean checkCtlPrivInternal(UserIdentity currentUser, String ctl, PrivPredicate wanted,
private boolean checkCtlPrivInternal(UserIdentity currentUser, String ctl, PrivPredicate wanted,
PrivBitSet checkedPrivs) {
RangerDorisResource resource = new RangerDorisResource(DorisObjectType.CATALOG, ctl);
return checkPrivilege(currentUser, wanted, resource, checkedPrivs);
Expand All @@ -173,7 +173,7 @@ public boolean checkDbPriv(UserIdentity currentUser, String ctl, String db, Priv
return false;
}

public boolean checkDbPrivInternal(UserIdentity currentUser, String ctl, String db, PrivPredicate wanted,
private boolean checkDbPrivInternal(UserIdentity currentUser, String ctl, String db, PrivPredicate wanted,
PrivBitSet checkedPrivs) {
RangerDorisResource resource = new RangerDorisResource(DorisObjectType.DATABASE, ctl,
ClusterNamespace.getNameFromFullName(db));
Expand Down Expand Up @@ -201,7 +201,7 @@ public boolean checkTblPriv(UserIdentity currentUser, String ctl, String db, Str
return false;
}

public boolean checkTblPrivInternal(UserIdentity currentUser, String ctl, String db, String tbl,
private boolean checkTblPrivInternal(UserIdentity currentUser, String ctl, String db, String tbl,
PrivPredicate wanted, PrivBitSet checkedPrivs) {
RangerDorisResource resource = new RangerDorisResource(DorisObjectType.TABLE,
ctl, ClusterNamespace.getNameFromFullName(db), tbl);
Expand Down

0 comments on commit 9d8feaf

Please sign in to comment.