mirror of
https://github.com/knadh/listmonk.git
synced 2024-11-14 11:36:51 +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
|
||||
getAll = false
|
||||
)
|
||||
if _, ok := user.PermissionsMap["lists:get_all"]; ok {
|
||||
if _, ok := user.PermissionsMap[models.PermListGetAll]; ok {
|
||||
getAll = true
|
||||
} else {
|
||||
permittedIDs = user.GetListIDs
|
||||
|
|
Loading…
Reference in a new issue