diff options
Diffstat (limited to 'include/modules/cap.h')
-rw-r--r-- | include/modules/cap.h | 6 |
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 |