Remove unused rights method

This commit is contained in:
kolaente 2020-12-18 14:44:44 +01:00
parent 8767618f18
commit 505d0e77fa
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 0 additions and 4 deletions

View File

@ -93,8 +93,6 @@ The interface is defined as followed:
```go
type Rights interface {
IsAdmin(Auth) (bool, error)
CanWrite(Auth) (bool, error)
CanRead(Auth) (bool, int, error) // The int is the max right the user has for this entity.
CanDelete(Auth) (bool, error)
CanUpdate(Auth) (bool, error)

2
web.go
View File

@ -19,8 +19,6 @@ import "github.com/labstack/echo/v4"
// Rights defines rights methods
type Rights interface {
IsAdmin(Auth) (bool, error)
CanWrite(Auth) (bool, error)
CanRead(Auth) (bool, int, error)
CanDelete(Auth) (bool, error)
CanUpdate(Auth) (bool, error)