Replace hardcoded perm literal with const.

This commit is contained in:
Kailash Nadh 2024-10-14 11:42:12 +05:30
parent 6258fd5cee
commit 354fb300f7

View file

@ -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