[#642] Use has_table_privilege and has_schema_privilege instead of experimental privilege checks.