mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
Updated user references to be app-default-supporting functions
This commit is contained in:
parent
9406b4d4c9
commit
ee58bea8b7
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -4,7 +4,7 @@ $key - Unique key for checking existing stored state.
|
||||
--}}
|
||||
<?php $isOpen = setting()->getForCurrentUser('section_expansion#'. $key); ?>
|
||||
<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' }}"
|
||||
class="text-muted icon-list-item text-primary">
|
||||
<span>@icon('expand-text')</span>
|
||||
|
Loading…
Reference in New Issue
Block a user