diff --git a/cmd/lists.go b/cmd/lists.go index 0968b1213..8b84da002 100644 --- a/cmd/lists.go +++ b/cmd/lists.go @@ -32,7 +32,7 @@ func handleGetLists(c echo.Context) error { permittedIDs []int getAll = false ) - if _, ok := user.PermissionsMap["lists:get_all"]; ok { + if _, ok := user.PermissionsMap[models.PermListGetAll]; ok { getAll = true } else { permittedIDs = user.GetListIDs