2021-11-09 22:54:34 +01:00
|
|
|
#ifndef RBAC_DEFAULT_PERMISSIONS_H
|
|
|
|
#define RBAC_DEFAULT_PERMISSIONS_H
|
|
|
|
|
|
|
|
enum RBACDefaultPermissions {
|
|
|
|
RBAC_PERMISSION_CREATE = 1 << 0,
|
|
|
|
RBAC_PERMISSION_READ = 1 << 1,
|
|
|
|
RBAC_PERMISSION_UPDATE = 1 << 2,
|
|
|
|
RBAC_PERMISSION_DELETE = 1 << 3,
|
|
|
|
|
|
|
|
RBAC_PERMISSION_ALL = RBAC_PERMISSION_CREATE | RBAC_PERMISSION_READ | RBAC_PERMISSION_UPDATE | RBAC_PERMISSION_DELETE,
|
|
|
|
RBAC_PERMISSION_NONE = 0
|
|
|
|
};
|
|
|
|
|
|
|
|
enum RBACDefaultRankPermissions {
|
2021-11-10 20:08:42 +01:00
|
|
|
RBAC_RANK_PERMISSION_ADMIN_PANEL = 1 << 0,
|
|
|
|
RBAC_RANK_PERMISSION_USE_REDIRECT = 1 << 1,
|
2021-11-09 22:54:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|