diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2024-10-26 14:45:09 +0200 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2024-10-29 09:10:56 +0100 |
commit | 569f23556066f9a8ddc682bc920ff57b73a15051 (patch) | |
tree | 2dfe1de3e4a0dc0fb9daeb536ae93a408d5da5ba /apps | |
parent | 1940b4f5cdc35ea8734c60d11078caefdc962156 (diff) | |
download | nextcloud-server-569f23556066f9a8ddc682bc920ff57b73a15051.tar.gz nextcloud-server-569f23556066f9a8ddc682bc920ff57b73a15051.zip |
fix(systemtags): no bulk action on public pages
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/systemtags/src/files_actions/bulkSystemTagsAction.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/systemtags/src/files_actions/bulkSystemTagsAction.ts b/apps/systemtags/src/files_actions/bulkSystemTagsAction.ts index 990e2122de5..1bf323b5de7 100644 --- a/apps/systemtags/src/files_actions/bulkSystemTagsAction.ts +++ b/apps/systemtags/src/files_actions/bulkSystemTagsAction.ts @@ -5,8 +5,8 @@ import { type Node } from '@nextcloud/files' import { defineAsyncComponent } from 'vue' -import { getCurrentUser } from '@nextcloud/auth' import { FileAction } from '@nextcloud/files' +import { isPublicShare } from '@nextcloud/sharing/public' import { spawnDialog } from '@nextcloud/dialogs' import { t } from '@nextcloud/l10n' @@ -30,12 +30,16 @@ export const action = new FileAction({ // If the app is disabled, the action is not available anyway enabled(nodes) { + if (isPublicShare()) { + return false + } + if (nodes.length === 0) { return false } // If the user is not logged in, the action is not available - return getCurrentUser() !== null + return true }, async exec(node: Node) { |