mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
17 lines
421 B
C++
17 lines
421 B
C++
|
#include <Access/User.h>
|
||
|
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
bool User::equal(const IAccessEntity & other) const
|
||
|
{
|
||
|
if (!IAccessEntity::equal(other))
|
||
|
return false;
|
||
|
const auto & other_user = typeid_cast<const User &>(other);
|
||
|
return (authentication == other_user.authentication) && (allowed_client_hosts == other_user.allowed_client_hosts)
|
||
|
&& (access == other_user.access) && (profile == other_user.profile);
|
||
|
}
|
||
|
|
||
|
}
|