Added test admin panel link to rbac_controller.

This commit is contained in:
Relintai 2021-11-01 01:39:55 +01:00
parent 20b59847fe
commit 0c6ea5612d
3 changed files with 14 additions and 0 deletions

View File

@ -12,6 +12,14 @@ class FormValidator;
struct AdminSectionLinkInfo {
String name;
String link;
AdminSectionLinkInfo() {
}
AdminSectionLinkInfo(const String &p_name, const String &p_link) {
name = p_name;
link = p_link;
}
};
class AdminController : public Controller {

View File

@ -14,6 +14,10 @@ void RBACController::handle_request_main(Request *request) {
void RBACController::create_validators() {
}
void RBACController::admin_add_section_links(Vector<AdminSectionLinkInfo> *links) {
links->push_back(AdminSectionLinkInfo("Test", "test/test"));
}
RBACController *RBACController::get_singleton() {
return _self;
}

View File

@ -15,6 +15,8 @@ public:
void handle_request_main(Request *request);
void create_validators();
void admin_add_section_links(Vector<AdminSectionLinkInfo> *links);
static RBACController *get_singleton();
RBACController();