8 lines
139 B
Go
8 lines
139 B
Go
package models
|
|
|
|
// Rights defines rights methods
|
|
type Rights interface {
|
|
IsAdmin(*User) bool
|
|
CanWrite(*User) bool
|
|
CanRead(*User) bool
|
|
}
|