Make the rbac module depend on the admin_panel module.

This commit is contained in:
Relintai 2021-10-31 23:12:05 +01:00
parent 6d77f78494
commit d7713e4c57
4 changed files with 10 additions and 6 deletions

View File

@ -8,5 +8,5 @@ env_mod.core_sources = []
env_mod.add_source_files(env_mod.core_sources, "*.cpp") env_mod.add_source_files(env_mod.core_sources, "*.cpp")
# Build it all as a library # Build it all as a library
lib = env_mod.add_library("users", env_mod.core_sources) lib = env_mod.add_library("rbac", env_mod.core_sources)
env.Prepend(LIBS=[lib]) env.Prepend(LIBS=[lib])

View File

@ -22,6 +22,10 @@ def get_flags():
return [] return []
def configure(env): def configure(env):
pass pass
def get_module_dependencies():
return [
"admin_panel",
]

View File

@ -19,7 +19,7 @@ RBACController *RBACController::get_singleton() {
} }
RBACController::RBACController() : RBACController::RBACController() :
Controller() { AdminController() {
if (_self) { if (_self) {
printf("RBACController::RBACController(): Error! self is not null!/n"); printf("RBACController::RBACController(): Error! self is not null!/n");

View File

@ -1,15 +1,15 @@
#ifndef RBAC_CONTROLLER_H #ifndef RBAC_CONTROLLER_H
#define RBAC_CONTROLLER_H #define RBAC_CONTROLLER_H
#include "core/http/controller.h" #include "modules/admin_panel/admin_controller.h"
#include <string> #include <string>
class Request; class Request;
class FormValidator; class FormValidator;
class RBACController : public Controller { class RBACController : public AdminController {
RCPP_OBJECT(RBACController, Controller); RCPP_OBJECT(RBACController, AdminController);
public: public:
void handle_request_main(Request *request); void handle_request_main(Request *request);