2018-07-08 22:50:01 +02:00
|
|
|
package models
|
|
|
|
|
2018-07-10 14:02:23 +02:00
|
|
|
// Rights defines rights methods
|
2018-07-08 22:50:01 +02:00
|
|
|
type Rights interface {
|
|
|
|
IsAdmin(*User) bool
|
2018-07-09 23:17:19 +02:00
|
|
|
CanWrite(*User) bool
|
|
|
|
CanRead(*User) bool
|
2018-07-12 21:20:24 +02:00
|
|
|
CanDelete(*User) bool
|
2018-07-12 23:07:03 +02:00
|
|
|
CanUpdate(*User, int64) bool
|
2018-07-08 22:50:01 +02:00
|
|
|
}
|