vikunja-api/models/rights.go

12 lines
229 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
2018-07-12 23:33:21 +02:00
CanDelete(*User, int64) bool
2018-07-12 23:07:03 +02:00
CanUpdate(*User, int64) bool
2018-07-12 23:16:32 +02:00
CanCreate(*User, int64) bool
}