Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Replace hardcoded perm literal with const.

Kailash Nadh354fb300f7ba
diff --git a/cmd/lists.go b/cmd/lists.go
index 0968b121..8b84da00 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