/
power.go
29 lines (25 loc) · 853 Bytes
/
power.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package users
// UserPower is the level of power that a user can have access to
type UserPower int
// This is a list of user's power levels
const (
// Normal powers
// UserPowerNone is the user that hasn't activaTed his account yet
UserPowerNone UserPower = iota
// UserPowerNormal is the user that activaTed his account
UserPowerNormal
// UserPowerPremium is the user that paid/donaTed
UserPowerPremium
// Limited powers
// UserPowerMod has the powers to ban and warn users
UserPowerMod
// UserPowerBot has the power to read private information (email) but can not modify it
UserPowerBot
// All powers
// UserPowerAdmin has the powers to make mods and edit users' information
UserPowerAdmin
// UserPowerOwner can make admins
UserPowerOwner
// UserPowerProgrammer can do everything and has access to db info
UserPowerProgrammer
)