mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-05-02 13:47:56 +02:00
Added test admin panel link to rbac_controller.
This commit is contained in:
parent
20b59847fe
commit
0c6ea5612d
@ -12,6 +12,14 @@ class FormValidator;
|
|||||||
struct AdminSectionLinkInfo {
|
struct AdminSectionLinkInfo {
|
||||||
String name;
|
String name;
|
||||||
String link;
|
String link;
|
||||||
|
|
||||||
|
AdminSectionLinkInfo() {
|
||||||
|
}
|
||||||
|
|
||||||
|
AdminSectionLinkInfo(const String &p_name, const String &p_link) {
|
||||||
|
name = p_name;
|
||||||
|
link = p_link;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
class AdminController : public Controller {
|
class AdminController : public Controller {
|
||||||
|
@ -14,6 +14,10 @@ void RBACController::handle_request_main(Request *request) {
|
|||||||
void RBACController::create_validators() {
|
void RBACController::create_validators() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void RBACController::admin_add_section_links(Vector<AdminSectionLinkInfo> *links) {
|
||||||
|
links->push_back(AdminSectionLinkInfo("Test", "test/test"));
|
||||||
|
}
|
||||||
|
|
||||||
RBACController *RBACController::get_singleton() {
|
RBACController *RBACController::get_singleton() {
|
||||||
return _self;
|
return _self;
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,8 @@ public:
|
|||||||
void handle_request_main(Request *request);
|
void handle_request_main(Request *request);
|
||||||
void create_validators();
|
void create_validators();
|
||||||
|
|
||||||
|
void admin_add_section_links(Vector<AdminSectionLinkInfo> *links);
|
||||||
|
|
||||||
static RBACController *get_singleton();
|
static RBACController *get_singleton();
|
||||||
|
|
||||||
RBACController();
|
RBACController();
|
||||||
|
Loading…
Reference in New Issue
Block a user