Merge pull request #52888 from nextcloud/backport/52533/stable31

[stable31] fix: do not show account filter for public shares
This commit is contained in:
F. E Noel Nfebe 2025-06-01 21:20:07 +02:00 committed by GitHub
commit 26d52cc5a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 3 deletions

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long