Default permissions enums for RBAC.

This commit is contained in:
Relintai 2021-11-09 22:54:34 +01:00
parent 946c799a3b
commit 62ca64a1eb

View File

@ -0,0 +1,18 @@
#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 {
RBAC_PERMISSION_ADMIN_PANEL = 1 << 0,
};
#endif