general/PERMISSIONS.md

19 lines
553 B
Markdown
Raw Permalink Normal View History

# Permissions
The basic principle of this permissions system is that each permission has a
32-bit ID. The first 16 bits denote the permission category, the last 16 the
type within that category. Each category has an admin permission denoted using
all zeros in the last 16 bits. A user with this permission automatically has
all other permissions, even if new permissions get added later.
## Categories
### Admin (`0`)
ID `0` grants a user admin permissions across all categories.
### Sections (`1`)
* `01`: Create sections
* `10`: Delete sections