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-08 22:50:01 +02:00
|
|
|
}
|