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:
parent
d7ce29183c
commit
bcef0bef0f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user