Skip to content

Commit

Permalink
grant all table engines in allow_database
Browse files Browse the repository at this point in the history
  • Loading branch information
jsc0218 committed Apr 18, 2024
1 parent 80fa1ab commit c9c23cc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/Access/UsersConfigAccessStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ namespace
if (databases)
{
user->access.revoke(AccessFlags::allFlags() - AccessFlags::allGlobalFlags());
user->access.grantWithGrantOption(AccessType::TABLE_ENGINE);
user->access.grantWithGrantOption(AccessFlags::allDictionaryFlags(), IDictionary::NO_DATABASE_TAG);
for (const String & database : *databases)
user->access.grantWithGrantOption(AccessFlags::allFlags(), database);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<allow_databases>
<database>default</database>
<database>test</database>
<database>Log</database>
</allow_databases>
</default>
</users>
Expand Down

0 comments on commit c9c23cc

Please sign in to comment.