aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/utils/davUtils.js
blob: 8c28c25c0440301c45cf00aef84a1d96bb09dad5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/**
 * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */

import { getCurrentUser } from '@nextcloud/auth'

export const isPublic = function() {
	return !getCurrentUser()
}

export const getToken = function() {
	return document.getElementById('sharingToken') && document.getElementById('sharingToken').value
}