2020-01-26 09:49:53 +00:00
|
|
|
#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);
|
2021-11-01 14:03:20 +00:00
|
|
|
return (auth_data == other_user.auth_data) && (allowed_client_hosts == other_user.allowed_client_hosts)
|
2020-04-20 22:07:00 +00:00
|
|
|
&& (access == other_user.access) && (granted_roles == other_user.granted_roles) && (default_roles == other_user.default_roles)
|
2021-07-28 02:40:51 +00:00
|
|
|
&& (settings == other_user.settings) && (grantees == other_user.grantees) && (default_database == other_user.default_database);
|
2020-01-26 09:49:53 +00:00
|
|
|
}
|
2020-05-03 03:12:03 +00:00
|
|
|
|
2020-01-26 09:49:53 +00:00
|
|
|
}
|