From bcef0bef0f971675adfe46623a34f11a9903d764 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Wed, 23 May 2018 14:50:15 +0200 Subject: [PATCH] F #1377: Fix const'ness --- include/Request.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/Request.h b/include/Request.h index 467ecc0871..9999377418 100644 --- a/include/Request.h +++ b/include/Request.h @@ -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; }