implemented binding url params directly to struct instead of passing them to the method for deleting items
This commit is contained in:
@ -5,7 +5,7 @@ type Rights interface {
|
||||
IsAdmin(*User) bool
|
||||
CanWrite(*User) bool
|
||||
CanRead(*User) bool
|
||||
CanDelete(*User, int64) bool
|
||||
CanDelete(*User) bool
|
||||
CanUpdate(*User, int64) bool
|
||||
CanCreate(*User, int64) bool
|
||||
}
|
||||
|
Reference in New Issue
Block a user