|
Leosac
0.7.0
OpenSourceAccessControl
|
A SecurityContext with no permission. More...
#include <UserSecurityContext.hpp>
Inheritance diagram for Leosac::NullSecurityContext:
Collaboration diagram for Leosac::NullSecurityContext:Public Member Functions | |
| NullSecurityContext () | |
| virtual bool | check_permission_impl (Action a, const ActionParam &ap) const override |
| Reimplement this method to provide permission checking. More... | |
Public Member Functions inherited from Leosac::UserSecurityContext | |
| UserSecurityContext (DBServicePtr dbsrv, Auth::UserId id) | |
| bool | is_self (Auth::UserId id) const |
Return true if the owner of the security context is the user whose id is id. More... | |
| Auth::UserId | user_id () const |
| Auth::UserPtr | self () const |
| Load the User object that owns this security context. More... | |
Public Member Functions inherited from Leosac::SecurityContext | |
| SecurityContext (DBServicePtr dbsrv) | |
| virtual | ~SecurityContext ()=default |
| virtual bool | check_permission (Action a, const ActionParam &ap) const |
Check for the permission to perform action a with parameters ap. More... | |
| bool | check_permission (Action a) const |
| Check for the permission to perform a given action. More... | |
| void | enforce_permission (Action a, const ActionParam &ap) const |
| Similar to check_permission(), but throws is the permission is denied. More... | |
| void | enforce_permission (Action a) const |
Make sure that we have the permission to perform action a, otherwise throws. More... | |
A SecurityContext with no permission.
Definition at line 98 of file UserSecurityContext.hpp.
| NullSecurityContext::NullSecurityContext | ( | ) |
Definition at line 335 of file UserSecurityContext.cpp.
|
overridevirtual |
Reimplement this method to provide permission checking.
Reimplemented from Leosac::UserSecurityContext.
Definition at line 340 of file UserSecurityContext.cpp.