vikunja-api/models/rights.go

12 lines
208 B
Go
Raw Normal View History

package models
2018-07-10 14:02:23 +02:00
// Rights defines rights methods
type Rights interface {
IsAdmin(*User) bool
CanWrite(*User) bool
CanRead(*User) bool
CanDelete(*User) bool
CanUpdate(*User) bool
CanCreate(*User) bool
}