From: Dan Brown Date: Sun, 14 Apr 2019 12:19:33 +0000 (+0100) Subject: Updated user references to be app-default-supporting functions X-Git-Tag: v0.26.0~1^2~23^2 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/refs/pull/1153/head Updated user references to be app-default-supporting functions --- diff --git a/app/Settings/SettingService.php b/app/Settings/SettingService.php index 48ae7d0f2..489963aad 100644 --- a/app/Settings/SettingService.php +++ b/app/Settings/SettingService.php @@ -75,7 +75,7 @@ class SettingService */ public function getForCurrentUser($key, $default = false) { - return $this->getUser(auth()->user(), $key, $default); + return $this->getUser(user(), $key, $default); } /** diff --git a/resources/views/components/expand-toggle.blade.php b/resources/views/components/expand-toggle.blade.php index 231b13741..e8b2220e5 100644 --- a/resources/views/components/expand-toggle.blade.php +++ b/resources/views/components/expand-toggle.blade.php @@ -4,7 +4,7 @@ $key - Unique key for checking existing stored state. --}} getForCurrentUser('section_expansion#'. $key); ?> @icon('expand-text')