From 354fb300f7ba7fab1ee0aa0f02152d40bc30c241 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Mon, 14 Oct 2024 11:42:12 +0530 Subject: [PATCH] Replace hardcoded perm literal with const. --- cmd/lists.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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