diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-06-23 19:40:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-23 19:40:12 +0300 |
commit | f214cc17ffc90b0750e754e824f720d335bda5b6 (patch) | |
tree | ed1434dabf9d26992e1e72ae8f46a7e04dfc3db9 | |
parent | ebe77af16909b0316ad1daba37d487c38dc5192e (diff) | |
parent | fd8183978eccfa945b3b18f86ed572c8b65a18a4 (diff) |
Merge pull request #1052 from nextcloud/bugfix/1050
getCurrentUser might be null in contrast to OC.getCurrentUser
-rw-r--r-- | src/helpers/guestName.js | 2 |
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) |