mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 20:12:02 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
18 lines
520 B
C++
18 lines
520 B
C++
#include <Access/Role.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
bool Role::equal(const IAccessEntity & other) const
|
|
{
|
|
if (!IAccessEntity::equal(other))
|
|
return false;
|
|
const auto & other_role = typeid_cast<const Role &>(other);
|
|
return (access == other_role.access) && (access_with_grant_option == other_role.access_with_grant_option)
|
|
&& (granted_roles == other_role.granted_roles) && (granted_roles_with_admin_option == other_role.granted_roles_with_admin_option)
|
|
&& (settings == other_role.settings);
|
|
}
|
|
|
|
}
|