rcpp_framework/modules/rbac/rbac_permission.cpp

22 lines
330 B
C++
Raw Normal View History

#include "rbac_permission.h"
2021-11-02 12:26:26 +01:00
bool RBACPermission::is_smaller(const Ref<RBACPermission> &b) const {
if (!b.is_valid()) {
return true;
}
return sort_order < b->sort_order;
}
RBACPermission::RBACPermission() :
Resource() {
id = 0;
rank_id = 0;
sort_order = 0;
permissions = 0;
}
RBACPermission::~RBACPermission() {
}