mirror of
https://github.com/nextcloud/server.git
synced 2026-03-23 19:03:20 -04:00
* Removed now duplicated code Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
14 lines
381 B
JavaScript
14 lines
381 B
JavaScript
/**
|
|
* 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
|
|
}
|