rcpp_framework/modules/rbac/rbac_rank.h

37 lines
588 B
C
Raw Normal View History

#ifndef RBAC_RANK_H
#define RBAC_RANK_H
#include "core/string.h"
#include "core/containers/vector.h"
#include "core/resource.h"
#include "rbac_permission.h"
class Request;
class RBACRank : public Resource {
RCPP_OBJECT(RBACRank, Resource);
public:
int id;
String name;
String name_internal;
String settings;
int base_permissions;
2021-11-01 15:12:09 +01:00
int rank_permissions;
Vector<Ref<RBACPermission> > permissions;
bool has_permission(Request *request, const int permission);
2021-11-10 20:08:42 +01:00
bool has_rank_permission(const int permission);
2021-11-02 12:26:26 +01:00
void sort_permissions();
RBACRank();
~RBACRank();
};
#endif