mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-09 17:14:47 +00:00
grant all table engines in allow_database
This commit is contained in:
parent
80fa1ab89a
commit
6e5afb8b89
@ -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);
|
||||
|
@ -4,7 +4,6 @@
|
||||
<allow_databases>
|
||||
<database>default</database>
|
||||
<database>test</database>
|
||||
<database>Log</database>
|
||||
</allow_databases>
|
||||
</default>
|
||||
</users>
|
||||
|
@ -10,7 +10,6 @@
|
||||
|
||||
<allow_databases>
|
||||
<database>db1</database>
|
||||
<database>Memory</database>
|
||||
</allow_databases>
|
||||
</restricted_user>
|
||||
</users>
|
||||
|
Loading…
Reference in New Issue
Block a user