Skip to content

Commit 183c253

Browse files
authored
Merge pull request #52533 from nextcloud/fix/no-account-filter-public-share
fix: do not show account filter for public shares
2 parents 48e94ba + 7a2d7ba commit 183c253

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

apps/files_sharing/src/files_filters/AccountFilter.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { ShareType } from '@nextcloud/sharing'
1010
import Vue from 'vue'
1111

1212
import FileListFilterAccount from '../components/FileListFilterAccount.vue'
13+
import { isPublicShare } from '@nextcloud/sharing/public'
1314

1415
export interface IAccountData {
1516
uid: string
@@ -152,5 +153,10 @@ class AccountFilter extends FileListFilter {
152153
* Register the file list filter by owner or sharees
153154
*/
154155
export function registerAccountFilter() {
156+
if (isPublicShare()) {
157+
// We do not show the filter on public pages - it makes no sense
158+
return
159+
}
160+
155161
registerFileListFilter(new AccountFilter())
156162
}

dist/files_sharing-init.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files_sharing-init.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)