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-18 08:15:38 +02:00
|
|
|
CanDelete(*User) bool
|
2018-07-21 15:17:02 +02:00
|
|
|
CanUpdate(*User) bool
|
2018-07-18 08:56:19 +02:00
|
|
|
CanCreate(*User) bool
|
2018-07-08 22:50:01 +02:00
|
|
|
}
|