Remove unused rights method
This commit is contained in:
parent
8767618f18
commit
505d0e77fa
|
@ -93,8 +93,6 @@ The interface is defined as followed:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
type Rights interface {
|
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.
|
CanRead(Auth) (bool, int, error) // The int is the max right the user has for this entity.
|
||||||
CanDelete(Auth) (bool, error)
|
CanDelete(Auth) (bool, error)
|
||||||
CanUpdate(Auth) (bool, error)
|
CanUpdate(Auth) (bool, error)
|
||||||
|
|
2
web.go
2
web.go
|
@ -19,8 +19,6 @@ import "github.com/labstack/echo/v4"
|
||||||
|
|
||||||
// Rights defines rights methods
|
// Rights defines rights methods
|
||||||
type Rights interface {
|
type Rights interface {
|
||||||
IsAdmin(Auth) (bool, error)
|
|
||||||
CanWrite(Auth) (bool, error)
|
|
||||||
CanRead(Auth) (bool, int, error)
|
CanRead(Auth) (bool, int, error)
|
||||||
CanDelete(Auth) (bool, error)
|
CanDelete(Auth) (bool, error)
|
||||||
CanUpdate(Auth) (bool, error)
|
CanUpdate(Auth) (bool, error)
|
||||||
|
|
Loading…
Reference in New Issue