Fix access rights: cannot grant INTROSPECTION when allow_introspection_functions=0.

This commit is contained in:
Vitaly Baranov 2020-06-28 21:39:44 +03:00
parent 3223757808
commit eb27814fbe

View File

@ -431,7 +431,7 @@ boost::shared_ptr<const AccessRights> ContextAccess::calculateResultAccess(bool
if (!allow_ddl_)
merged_access->revoke(table_and_dictionary_ddl);
if (!allow_introspection_ && !grant_option)
if (!allow_introspection_)
merged_access->revoke(AccessType::INTROSPECTION);
/// Anyone has access to the "system" database.