rcpp_framework/modules/rbac/rbac_controller.h

40 lines
771 B
C
Raw Normal View History

#ifndef RBAC_CONTROLLER_H
#define RBAC_CONTROLLER_H
2021-11-01 16:39:30 +01:00
#include <map>
#include "modules/admin_panel/admin_controller.h"
2021-11-01 16:39:30 +01:00
#include "core/containers/vector.h"
#include "core/string.h"
#include "rbac_permission.h"
#include "rbac_rank.h"
class Request;
class FormValidator;
class RBACController : public AdminController {
RCPP_OBJECT(RBACController, AdminController);
public:
void handle_request_main(Request *request);
void create_validators();
2021-11-01 15:12:09 +01:00
void admin_handle_request_main(Request *request);
void admin_add_section_links(Vector<AdminSectionLinkInfo> *links);
2021-11-01 16:39:30 +01:00
void initialize();
static RBACController *get_singleton();
RBACController();
~RBACController();
protected:
static RBACController *_self;
2021-11-01 16:39:30 +01:00
std::map<int, Ref<RBACRank> > _permissions;
};
#endif