Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-06-23 19:40:12 +0300
committerGitHub <noreply@github.com>2020-06-23 19:40:12 +0300
commitf214cc17ffc90b0750e754e824f720d335bda5b6 (patch)
treeed1434dabf9d26992e1e72ae8f46a7e04dfc3db9
parentebe77af16909b0316ad1daba37d487c38dc5192e (diff)
parentfd8183978eccfa945b3b18f86ed572c8b65a18a4 (diff)
Merge pull request #1052 from nextcloud/bugfix/1050
getCurrentUser might be null in contrast to OC.getCurrentUser
-rw-r--r--src/helpers/guestName.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/guestName.js b/src/helpers/guestName.js
index 514cdf14..613edc26 100644
--- a/src/helpers/guestName.js
+++ b/src/helpers/guestName.js
@@ -48,7 +48,7 @@ const setGuestNameCookie = function(username) {
const shouldAskForGuestName = () => {
return !mobile.isDirectEditing()
- && getCurrentUser().uid === null
+ && getCurrentUser()?.uid === null
&& Config.get('userId') === null
&& getGuestNameCookie() === ''
&& (Config.get('permissions') & OC.PERMISSION_UPDATE)