1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

F #1377: Fix const'ness

This commit is contained in:
Ruben S. Montero 2018-05-23 14:50:15 +02:00
parent d7ce29183c
commit bcef0bef0f

View File

@ -112,18 +112,18 @@ public:
resp_msg = "";
};
bool is_admin()
bool is_admin() const
{
return uid == UserPool::ONEADMIN_ID ||
group_ids.count(GroupPool::ONEADMIN_ID) == 1;
}
bool is_oneadmin()
bool is_oneadmin() const
{
return uid == UserPool::ONEADMIN_ID;
}
bool is_oneadmin_group()
bool is_oneadmin_group() const
{
return gid == GroupPool::ONEADMIN_ID;
}