mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-02-20 15:14:26 +01:00
RBACRank and permisson uses mys tring and vector aswell.
This commit is contained in:
parent
21558cb09a
commit
cc5962bbdd
@ -1,9 +1,9 @@
|
||||
#ifndef RBAC_PERMISSION_H
|
||||
#define RBAC_PERMISSION_H
|
||||
|
||||
#include "core/resource.h"
|
||||
#include "core/string.h"
|
||||
|
||||
#include <string>
|
||||
#include "core/resource.h"
|
||||
|
||||
class RBACPermission : public Resource {
|
||||
RCPP_OBJECT(RBACPermission, Resource);
|
||||
@ -11,8 +11,8 @@ class RBACPermission : public Resource {
|
||||
public:
|
||||
int id;
|
||||
int rank_id;
|
||||
std::string name;
|
||||
std::string url;
|
||||
String name;
|
||||
String url;
|
||||
bool revoke;
|
||||
int sort_order;
|
||||
int permissions;
|
||||
|
@ -1,10 +1,10 @@
|
||||
#ifndef RBAC_RANK_H
|
||||
#define RBAC_RANK_H
|
||||
|
||||
#include "core/resource.h"
|
||||
#include "core/string.h"
|
||||
#include "core/containers/vector.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "core/resource.h"
|
||||
|
||||
#include "rbac_permission.h"
|
||||
|
||||
@ -14,13 +14,13 @@ class RBACRank : public Resource {
|
||||
public:
|
||||
int id;
|
||||
|
||||
std::string name;
|
||||
std::string name_internal;
|
||||
std::string settings;
|
||||
String name;
|
||||
String name_internal;
|
||||
String settings;
|
||||
|
||||
int rank_permissions;
|
||||
|
||||
std::vector<Ref<RBACPermission> > permissions;
|
||||
Vector<Ref<RBACPermission> > permissions;
|
||||
|
||||
RBACRank();
|
||||
~RBACRank();
|
||||
|
Loading…
Reference in New Issue
Block a user