vikunja-api/models/rights.go
2018-07-12 23:16:32 +02:00

11 lines
222 B
Go

package models
// Rights defines rights methods
type Rights interface {
IsAdmin(*User) bool
CanWrite(*User) bool
CanRead(*User) bool
CanDelete(*User) bool
CanUpdate(*User, int64) bool
CanCreate(*User, int64) bool
}