Fix strange code in InterpreterShowAccessQuery

This commit is contained in:
tavplubix 2020-11-11 13:09:48 +03:00 committed by GitHub
parent 637e3dc2c2
commit bd3f9e2a22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ ASTs InterpreterShowAccessQuery::getCreateAndGrantQueries() const
for (const auto & entity : entities)
{
create_queries.push_back(InterpreterShowCreateAccessEntityQuery::getCreateQuery(*entity, access_control));
if (entity->isTypeOf(EntityType::USER) || entity->isTypeOf(EntityType::USER))
if (entity->isTypeOf(EntityType::USER) || entity->isTypeOf(EntityType::ROLE))
boost::range::push_back(grant_queries, InterpreterShowGrantsQuery::getGrantQueries(*entity, access_control));
}