67bf46dd9a
Renamed ResourcePeople to ResourceUsers. Work in progress. Added a few "default" roles as a reminder for later.
20 lines
507 B
Go
20 lines
507 B
Go
package acl
|
|
|
|
type Role string
|
|
type Roles map[Role]Actions
|
|
|
|
const (
|
|
RoleDefault Role = "*"
|
|
RoleAdmin Role = "admin"
|
|
RolePartner Role = "partner"
|
|
RoleFamily Role = "family"
|
|
RoleSibling Role = "sibling"
|
|
RoleParent Role = "parent"
|
|
RoleGrandparent Role = "grandparent"
|
|
RoleChild Role = "child"
|
|
RoleFriend Role = "friend"
|
|
RoleBestFriend Role = "best-friend"
|
|
RoleClassmate Role = "classmate"
|
|
RoleWorkmate Role = "workmate"
|
|
RoleGuest Role = "guest"
|
|
)
|