mirror of
https://github.com/knadh/listmonk.git
synced 2025-03-01 00:35:28 +08:00
Replace hardcoded perm literal with const.
This commit is contained in:
parent
6258fd5cee
commit
354fb300f7
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ func handleGetLists(c echo.Context) error {
|
||||||
permittedIDs []int
|
permittedIDs []int
|
||||||
getAll = false
|
getAll = false
|
||||||
)
|
)
|
||||||
if _, ok := user.PermissionsMap["lists:get_all"]; ok {
|
if _, ok := user.PermissionsMap[models.PermListGetAll]; ok {
|
||||||
getAll = true
|
getAll = true
|
||||||
} else {
|
} else {
|
||||||
permittedIDs = user.GetListIDs
|
permittedIDs = user.GetListIDs
|
||||||
|
|
Loading…
Reference in a new issue