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);
|
|
|
|
return (authentication == other_user.authentication) && (allowed_client_hosts == other_user.allowed_client_hosts)
|
2020-02-04 22:31:04 +00:00
|
|
|
&& (access == other_user.access) && (access_with_grant_option == other_user.access_with_grant_option)
|
2020-02-21 00:17:07 +00:00
|
|
|
&& (granted_roles == other_user.granted_roles) && (granted_roles_with_admin_option == other_user.granted_roles_with_admin_option)
|
2020-03-04 22:27:03 +00:00
|
|
|
&& (default_roles == other_user.default_roles) && (settings == other_user.settings);
|
2020-01-26 09:49:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|