summaryrefslogtreecommitdiff
path: root/include/modules
diff options
context:
space:
mode:
Diffstat (limited to 'include/modules')
-rw-r--r--include/modules/cap.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/modules/cap.h b/include/modules/cap.h
index 9dacdc200..664120d39 100644
--- a/include/modules/cap.h
+++ b/include/modules/cap.h
@@ -304,6 +304,12 @@ namespace Cap
{
}
+ /** Retrieves the underlying cap. */
+ operator const Cap::Capability*() const
+ {
+ return ref ? *ref : NULL;
+ }
+
/** Check whether a user has the referenced capability turned on.
* @param user User to check
* @return True if the user is using the referenced capability, false otherwise