mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
Make the rbac module depend on the admin_panel module.
This commit is contained in:
parent
6d77f78494
commit
d7713e4c57
@ -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])
|
||||||
|
@ -22,6 +22,10 @@ def get_flags():
|
|||||||
|
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
||||||
def configure(env):
|
def configure(env):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def get_module_dependencies():
|
||||||
|
return [
|
||||||
|
"admin_panel",
|
||||||
|
]
|
@ -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");
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user