mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
23 lines
347 B
C++
23 lines
347 B
C++
#include "rbac_permission.h"
|
|
|
|
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;
|
|
revoke = false;
|
|
sort_order = 0;
|
|
permissions = 0;
|
|
}
|
|
|
|
RBACPermission::~RBACPermission() {
|
|
}
|