Skip to main content

Permissions

Lunalytics uses a bitwise permission system to manage user roles and access levels. Each permission is represented by a unique bit in an integer, allowing for efficient storage and checking of multiple permissions. The permissions are defined as follows:

User Permissions

RoleValueDescription
ADMINISTRATOR1 << 0Has all permissions
MANAGE_TEAM1 << 1Permission to manage team members
CREATE_INVITE1 << 2Permission to create invites

Member Permissions

RoleValueDescription
ADMINISTRATOR1 << 0Has all permissions
VIEW_MONITORS1 << 1Permission to view monitors
MANAGE_MONITORS1 << 2Permission to create, delete, and update monitors
VIEW_NOTIFICATIONS1 << 3Permission to view notifications
MANAGE_NOTIFICATIONS1 << 4Permission to create, delete, and update notifications
VIEW_STATUS_PAGES1 << 5Permission to view status pages
MANAGE_STATUS_PAGES1 << 6Permission to create, delete, and update status pages
VIEW_INCIDENTS1 << 7Permission to view incidents
MANAGE_INCIDENTS1 << 8Permission to create, delete, and update incidents
MANAGE_TEAM1 << 9Permission to manage team members
CREATE_INVITE1 << 10Permission to create invites