Implemented CRUD Helper, every struct needs its own methods
This commit is contained in:
5
models/rights.go
Normal file
5
models/rights.go
Normal file
@ -0,0 +1,5 @@
|
||||
package models
|
||||
|
||||
type Rights interface {
|
||||
IsAdmin(*User) bool
|
||||
}
|
Reference in New Issue
Block a user