New structure (#7)
This commit is contained in:
11
pkg/models/rights.go
Normal file
11
pkg/models/rights.go
Normal file
@ -0,0 +1,11 @@
|
||||
package models
|
||||
|
||||
// Rights defines rights methods
|
||||
type Rights interface {
|
||||
IsAdmin(*User) bool
|
||||
CanWrite(*User) bool
|
||||
CanRead(*User) bool
|
||||
CanDelete(*User) bool
|
||||
CanUpdate(*User) bool
|
||||
CanCreate(*User) bool
|
||||
}
|
Reference in New Issue
Block a user