Skip to content

Commit

Permalink
allow show roles (#12478)
Browse files Browse the repository at this point in the history
  • Loading branch information
flaneur2020 authored Aug 16, 2023
1 parent e33eec4 commit 13b15e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/query/service/src/interpreters/access/privilege_access.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,6 @@ impl AccessChecker for PrivilegeAccess {
| Plan::ShowObjectGrantPrivileges(_)
| Plan::ShowGrantTenantsOfShare(_)
| Plan::ShowGrants(_)
| Plan::ShowRoles(_)
| Plan::GrantRole(_)
| Plan::GrantPriv(_)
| Plan::RevokePriv(_)
Expand Down Expand Up @@ -591,8 +590,9 @@ impl AccessChecker for PrivilegeAccess {
.await?;
}
// Note: No need to check privileges
// SET ROLE is a session-local statement (have same semantic with the SET ROLE in postgres), no need to check privileges
// SET ROLE & SHOW ROLES is a session-local statement (have same semantic with the SET ROLE in postgres), no need to check privileges
Plan::SetRole(_) => {}
Plan::ShowRoles(_) => {}
Plan::Presign(_) => {}
Plan::ExplainAst { .. } => {}
Plan::ExplainSyntax { .. } => {}
Expand Down

1 comment on commit 13b15e6

@vercel
Copy link

@vercel vercel bot commented on 13b15e6 Aug 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

databend – ./

databend-git-main-databend.vercel.app
databend.vercel.app
databend-databend.vercel.app
databend.rs

Please sign in to comment.