snow/person/permissions.go

18 lines
423 B
Go
Raw Normal View History

2023-12-14 19:47:54 +00:00
package person
2024-02-09 21:51:26 +00:00
type Permission int64
2023-12-14 19:47:54 +00:00
2024-02-09 21:51:26 +00:00
// DO NOT MOVE THE ORDER OF THESE PERMISSIONS AS THEY ARE USED IN THE DATABASE
2023-12-14 19:47:54 +00:00
const (
2024-02-09 21:51:26 +00:00
PermissionLookup Permission = 1 << iota
PermissionBan
PermissionInformation
PermissionItemControl
PermissionLockerControl
PermissionPermissionControl
// user roles, not really permissions but implemented as such
PermissionOwner
PermissionDonator
2023-12-14 19:47:54 +00:00
2024-02-09 21:51:26 +00:00
PermissionAll Permission = 1<<iota - 1
2023-12-14 19:47:54 +00:00
)