Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 68d1a20

Browse files
committed
feat: Allow filtering content by mimetype
Signed-off-by: Carl Schwan <[email protected]>
1 parent e4fbefc commit 68d1a20

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/ACL/ACLCacheWrapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ protected function formatCacheEntry($entry, array $rules = []): ICacheEntry|fals
5757
}
5858

5959
#[\Override]
60-
public function getFolderContentsById($fileId): array {
61-
$results = $this->getCache()->getFolderContentsById($fileId);
60+
public function getFolderContentsById($fileId, ?string $mimeTypeFilter = null): array {
61+
$results = $this->getCache()->getFolderContentsById($fileId, $mimeTypeFilter);
6262
$rules = $this->preloadEntries($results);
6363

6464
return array_filter(array_map(fn (ICacheEntry $entry): ICacheEntry|false => $this->formatCacheEntry($entry, $rules), $results));

0 commit comments

Comments
 (0)