diff --git a/modules/rbac/SCsub b/modules/rbac/SCsub index 33e2978..dab438f 100644 --- a/modules/rbac/SCsub +++ b/modules/rbac/SCsub @@ -8,5 +8,5 @@ env_mod.core_sources = [] env_mod.add_source_files(env_mod.core_sources, "*.cpp") # 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]) diff --git a/modules/rbac/detect.py b/modules/rbac/detect.py index d35fcab..1c03707 100644 --- a/modules/rbac/detect.py +++ b/modules/rbac/detect.py @@ -22,6 +22,10 @@ def get_flags(): return [] - def configure(env): pass + +def get_module_dependencies(): + return [ + "admin_panel", + ] \ No newline at end of file diff --git a/modules/rbac/rbac_controller.cpp b/modules/rbac/rbac_controller.cpp index 84f6ba0..1d7af00 100644 --- a/modules/rbac/rbac_controller.cpp +++ b/modules/rbac/rbac_controller.cpp @@ -19,7 +19,7 @@ RBACController *RBACController::get_singleton() { } RBACController::RBACController() : - Controller() { + AdminController() { if (_self) { printf("RBACController::RBACController(): Error! self is not null!/n"); diff --git a/modules/rbac/rbac_controller.h b/modules/rbac/rbac_controller.h index b6a5656..b9561bc 100644 --- a/modules/rbac/rbac_controller.h +++ b/modules/rbac/rbac_controller.h @@ -1,15 +1,15 @@ #ifndef RBAC_CONTROLLER_H #define RBAC_CONTROLLER_H -#include "core/http/controller.h" +#include "modules/admin_panel/admin_controller.h" #include class Request; class FormValidator; -class RBACController : public Controller { - RCPP_OBJECT(RBACController, Controller); +class RBACController : public AdminController { + RCPP_OBJECT(RBACController, AdminController); public: void handle_request_main(Request *request);