summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-02-13 14:50:06 +0100
committerBackportbot <backportbot-noreply@rullzer.com>2019-02-20 12:22:31 +0000
commit2f98c873fab666b0297e540b5c816a72fe945855 (patch)
treebb961e8b2920ac7893bf7ab6aae01ff5a63004c4 /core
parent6e110c35b03ed780b1810e9bb68877a800fee195 (diff)
downloadnextcloud-server-2f98c873fab666b0297e540b5c816a72fe945855.tar.gz
nextcloud-server-2f98c873fab666b0297e540b5c816a72fe945855.zip
Fix OC.getCurrentUser() on guest pages
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core')
-rw-r--r--core/templates/layout.guest.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php
index ae685959351..1df2eade09b 100644
--- a/core/templates/layout.guest.php
+++ b/core/templates/layout.guest.php
@@ -1,6 +1,10 @@
<!DOCTYPE html>
<html class="ng-csp" data-placeholder-focus="false" lang="<?php p($_['language']); ?>" data-locale="<?php p($_['locale']); ?>" >
- <head data-requesttoken="<?php p($_['requesttoken']); ?>">
+ <head
+<?php if ($_['user_uid']) { ?>
+ data-user="<?php p($_['user_uid']); ?>" data-user-displayname="<?php p($_['user_displayname']); ?>"
+<?php } ?>
+ data-requesttoken="<?php p($_['requesttoken']); ?>">
<meta charset="utf-8">
<title>
<?php p($theme->getTitle()); ?>