mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-10 00:52:11 +01: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 {
|
||||
String name;
|
||||
String link;
|
||||
|
||||
AdminSectionLinkInfo() {
|
||||
}
|
||||
|
||||
AdminSectionLinkInfo(const String &p_name, const String &p_link) {
|
||||
name = p_name;
|
||||
link = p_link;
|
||||
}
|
||||
};
|
||||
|
||||
class AdminController : public Controller {
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user