2021-11-10 15:32:44 +01:00
|
|
|
#ifndef RBAC_USER_CONTROLLER_H
|
|
|
|
#define RBAC_USER_CONTROLLER_H
|
|
|
|
|
|
|
|
#include "modules/users/user_controller.h"
|
|
|
|
|
2021-11-10 19:35:02 +01:00
|
|
|
class Request;
|
|
|
|
|
2021-11-10 15:32:44 +01:00
|
|
|
class RBACUserController : public UserController {
|
|
|
|
RCPP_OBJECT(RBACUserController, UserController);
|
|
|
|
|
|
|
|
public:
|
2021-11-10 19:35:02 +01:00
|
|
|
//just session setup
|
|
|
|
static void rbac_user_session_setup_middleware(Object *instance, Request *request);
|
|
|
|
//this one also handles missing read permission / redirect
|
|
|
|
static void rbac_default_user_session_middleware(Object *instance, Request *request);
|
|
|
|
|
2021-11-10 15:32:44 +01:00
|
|
|
RBACUserController();
|
|
|
|
~RBACUserController();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|