Fixed getting lists by namespace
This commit is contained in:
parent
87873e53c5
commit
2d9d27f63c
1 changed files with 2 additions and 5 deletions
|
@ -85,6 +85,7 @@ func getNamespace(c echo.Context) (namespace models.Namespace, err error) {
|
|||
if err != nil {
|
||||
return
|
||||
}
|
||||
namespace.ID = namespaceID
|
||||
canRead, err := namespace.CanRead(user)
|
||||
if err != nil {
|
||||
return namespace, err
|
||||
|
@ -94,10 +95,6 @@ func getNamespace(c echo.Context) (namespace models.Namespace, err error) {
|
|||
}
|
||||
|
||||
// Get the namespace
|
||||
namespace, err = models.GetNamespaceByID(namespaceID)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
err = namespace.ReadOne()
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue