Merge pull request #52533 from nextcloud/fix/no-account-filter-public-share

fix: do not show account filter for public shares
pull/52891/head
John Molakvoæ 2025-05-15 19:25:31 +07:00 committed by GitHub
commit 183c253f5e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 3 deletions

@ -10,6 +10,7 @@ import { ShareType } from '@nextcloud/sharing'
import Vue from 'vue'
import FileListFilterAccount from '../components/FileListFilterAccount.vue'
import { isPublicShare } from '@nextcloud/sharing/public'
export interface IAccountData {
uid: string
@ -152,5 +153,10 @@ class AccountFilter extends FileListFilter {
* Register the file list filter by owner or sharees
*/
export function registerAccountFilter() {
if (isPublicShare()) {
// We do not show the filter on public pages - it makes no sense
return
}
registerFileListFilter(new AccountFilter())
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long