mirror of
https://github.com/nextcloud/server.git
synced 2026-04-23 23:27:46 -04:00
fix: do not show account filter for public shares
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
56897b6f3c
commit
e9382dc4da
1 changed files with 6 additions and 0 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())
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue