mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-29 03:22:00 +08:00
Updated user references to be app-default-supporting functions
This commit is contained in:
@ -75,7 +75,7 @@ class SettingService
|
|||||||
*/
|
*/
|
||||||
public function getForCurrentUser($key, $default = false)
|
public function getForCurrentUser($key, $default = false)
|
||||||
{
|
{
|
||||||
return $this->getUser(auth()->user(), $key, $default);
|
return $this->getUser(user(), $key, $default);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -4,7 +4,7 @@ $key - Unique key for checking existing stored state.
|
|||||||
--}}
|
--}}
|
||||||
<?php $isOpen = setting()->getForCurrentUser('section_expansion#'. $key); ?>
|
<?php $isOpen = setting()->getForCurrentUser('section_expansion#'. $key); ?>
|
||||||
<a expand-toggle="{{ $target }}"
|
<a expand-toggle="{{ $target }}"
|
||||||
expand-toggle-update-endpoint="{{ baseUrl('/settings/users/'. auth()->user()->id .'/update-expansion-preference/' . $key) }}"
|
expand-toggle-update-endpoint="{{ baseUrl('/settings/users/'. $currentUser->id .'/update-expansion-preference/' . $key) }}"
|
||||||
expand-toggle-is-open="{{ $isOpen ? 'yes' : 'no' }}"
|
expand-toggle-is-open="{{ $isOpen ? 'yes' : 'no' }}"
|
||||||
class="text-muted icon-list-item text-primary">
|
class="text-muted icon-list-item text-primary">
|
||||||
<span>@icon('expand-text')</span>
|
<span>@icon('expand-text')</span>
|
||||||
|
Reference in New Issue
Block a user