rcpp_framework/web_modules/rbac_users/rbac_user.h

27 lines
542 B
C
Raw Normal View History

2021-11-10 15:32:44 +01:00
#ifndef RBAC_USER_H
#define RBAC_USER_H
#include "core/string.h"
#include "web_modules/users/user.h"
#include "web_modules/rbac/rbac_rank.h"
2021-11-10 15:32:44 +01:00
class Request;
class FormValidator;
class RBACUser : public User {
RCPP_OBJECT(RBACUser, User);
public:
Ref<RBACRank> rbac_rank;
int get_permissions(Request *request);
bool has_permission(Request *request, const int permission);
int get_additional_permissions(Request *request);
bool has_additional_permission(Request *request, const int permission);
2021-11-10 15:32:44 +01:00
RBACUser();
~RBACUser();
};
#endif