diff --git a/src/query/service/src/interpreters/access/privilege_access.rs b/src/query/service/src/interpreters/access/privilege_access.rs index 5c9b79eed339..f063a00c133e 100644 --- a/src/query/service/src/interpreters/access/privilege_access.rs +++ b/src/query/service/src/interpreters/access/privilege_access.rs @@ -515,7 +515,6 @@ impl AccessChecker for PrivilegeAccess { | Plan::ShowObjectGrantPrivileges(_) | Plan::ShowGrantTenantsOfShare(_) | Plan::ShowGrants(_) - | Plan::ShowRoles(_) | Plan::GrantRole(_) | Plan::GrantPriv(_) | Plan::RevokePriv(_) @@ -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 { .. } => {}