#include <permissions.hpp>
Public Member Functions | |
void | permissions_allow (std::string permission_id, int flag) |
Set a permission flag for this object instance. | |
void | permissions_deny (std::string permission_id, int flag) |
Remove a permission flag from this object instance. | |
bool | permissions_check (std::string permission_id, int flag) const |
Check this object instance for a permission flag. | |
std::string | get_owner () const |
Returns the owner of this object instance. | |
std::string | get_group () const |
Returns the group of the owner of this object instance. |
TODO .
void saga::detail::permissions< Derived >::permissions_allow | ( | std::string | permission_id, | |
int | flag | |||
) | [inline] |
Set a permission flag for this object instance.
permission_id | The permission to set the flag for | |
flag | The flag to set |
void saga::detail::permissions< Derived >::permissions_deny | ( | std::string | permission_id, | |
int | flag | |||
) | [inline] |
Remove a permission flag from this object instance.
permission_id | The permission to remove the flag from | |
flag | The flag to remove |
bool saga::detail::permissions< Derived >::permissions_check | ( | std::string | permission_id, | |
int | flag | |||
) | const [inline] |
Check this object instance for a permission flag.
permission_id | The permission to check for a flag | |
flag | The flag to check for |
std::string saga::detail::permissions< Derived >::get_owner | ( | ) | const [inline] |
Returns the owner of this object instance.
std::string saga::detail::permissions< Derived >::get_group | ( | ) | const [inline] |
Returns the group of the owner of this object instance.