New structure (#7)
This commit is contained in:
parent
3f9fad0e2a
commit
301a4eedda
104 changed files with 326 additions and 280 deletions
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 a new issue