mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
dd8b29b4fb
This change simplifies handling of access entities in access storages.
16 lines
351 B
C++
16 lines
351 B
C++
#include <Access/SettingsProfile.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
bool SettingsProfile::equal(const IAccessEntity & other) const
|
|
{
|
|
if (!IAccessEntity::equal(other))
|
|
return false;
|
|
const auto & other_profile = typeid_cast<const SettingsProfile &>(other);
|
|
return (elements == other_profile.elements) && (to_roles == other_profile.to_roles);
|
|
}
|
|
|
|
}
|