mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
23 lines
558 B
C++
23 lines
558 B
C++
#ifndef RBAC_USER_CONTROLLER_H
|
|
#define RBAC_USER_CONTROLLER_H
|
|
|
|
#include "modules/users/user_controller.h"
|
|
|
|
class Request;
|
|
|
|
class RBACUserController : public UserController {
|
|
RCPP_OBJECT(RBACUserController, UserController);
|
|
|
|
public:
|
|
//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);
|
|
|
|
RBACUserController();
|
|
~RBACUserController();
|
|
|
|
protected:
|
|
};
|
|
|
|
#endif |