summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/modules/cap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/modules/cap.h b/include/modules/cap.h
index e6f9340e8..86a60c445 100644
--- a/include/modules/cap.h
+++ b/include/modules/cap.h
@@ -197,7 +197,7 @@ namespace Cap
if (!IsRegistered())
return false;
Ext caps = extitem->get(user);
- return (caps & GetMask());
+ return ((caps & GetMask()) != 0);
}
/** Turn the capability on/off for a user. If the cap is not registered this method has no effect.