From 52af69ae216e4e24860ea618c0db29624fc6acc9 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Thu, 27 Oct 2022 15:26:56 +0200 Subject: [PATCH] API: Change required permissions for searching files and folders Signed-off-by: Michael Mayer --- internal/api/folders_search.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {