diff --git a/internal/api/folders_search.go b/internal/api/folders_search.go index 5a95c1014..dea3b58f4 100644 --- a/internal/api/folders_search.go +++ b/internal/api/folders_search.go @@ -45,7 +45,7 @@ func SearchFoldersImport(router *gin.RouterGroup) { // SearchFolders is a reusable request handler for directory listings (GET /api/v1/folders/*). func SearchFolders(router *gin.RouterGroup, urlPath, rootName, rootPath string) { handler := func(c *gin.Context) { - s := Auth(c, acl.ResourceFolders, acl.ActionSearch) + s := Auth(c, acl.ResourceFiles, acl.ActionSearch) // Abort if permission was not granted. if s.Abort(c) {