2021-10-31 21:45:12 +01:00
|
|
|
#ifndef RBAC_PERMISSION_H
|
|
|
|
#define RBAC_PERMISSION_H
|
|
|
|
|
2021-11-01 17:51:54 +01:00
|
|
|
#include "core/string.h"
|
2021-10-31 21:45:12 +01:00
|
|
|
|
2021-11-01 17:51:54 +01:00
|
|
|
#include "core/resource.h"
|
2021-10-31 21:45:12 +01:00
|
|
|
|
|
|
|
class RBACPermission : public Resource {
|
|
|
|
RCPP_OBJECT(RBACPermission, Resource);
|
|
|
|
|
|
|
|
public:
|
|
|
|
int id;
|
|
|
|
int rank_id;
|
2021-11-01 17:51:54 +01:00
|
|
|
String name;
|
|
|
|
String url;
|
2021-10-31 21:45:12 +01:00
|
|
|
int sort_order;
|
|
|
|
int permissions;
|
|
|
|
|
2021-11-02 12:26:26 +01:00
|
|
|
bool is_smaller(const Ref<RBACPermission> &b) const;
|
|
|
|
|
2021-10-31 21:45:12 +01:00
|
|
|
RBACPermission();
|
|
|
|
~RBACPermission();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|