Skip to content

Commit

Permalink
Replace hardcoded perm literal with const.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Oct 20, 2024
1 parent 6258fd5 commit 354fb30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/lists.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 354fb30

Please sign in to comment.