fix: do not show account filter for public shares

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2025-04-29 16:23:12 +02:00
parent 56897b6f3c
commit e9382dc4da

View file

@ -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())
}