]> BookStack Code Mirror - bookstack/commit
Guest control: Cleaned methods involved in fetching/handling
authorDan Brown <redacted>
Sat, 16 Sep 2023 12:18:35 +0000 (13:18 +0100)
committerDan Brown <redacted>
Sat, 16 Sep 2023 12:18:35 +0000 (13:18 +0100)
commitb90033a73032da8657f1bd3ec3687aa4426d8cc1
treebc337c671a19fef540f9e80efc34b785ce56848a
parent9ac932fc28ac7085eb956c2c217e9b8612462d4a
Guest control: Cleaned methods involved in fetching/handling

- Moves guest user caching from User class to app container for
  simplicity.
- Updates test to use simpler $this->users->guest() method for
  consistency.
- Streamlined helpers to avoid function overlap for simplicity.
- Extracted user profile dropdown while doing changes.
30 files changed:
app/Activity/Models/View.php
app/Activity/Tools/UserEntityWatchOptions.php
app/App/Providers/AuthServiceProvider.php
app/App/helpers.php
app/Entities/Queries/RecentlyViewed.php
app/Entities/Queries/TopFavourites.php
app/Http/Controller.php
app/Http/Middleware/ApiAuthenticate.php
app/Http/Middleware/Authenticate.php
app/Http/Middleware/PreventAuthenticatedResponseCaching.php
app/Settings/SettingController.php
app/Settings/SettingService.php
app/Translation/LanguageManager.php
app/Users/Controllers/UserSearchController.php
app/Users/Models/User.php
resources/views/books/show.blade.php
resources/views/chapters/show.blade.php
resources/views/common/header-user-menu.blade.php [new file with mode: 0644]
resources/views/common/header.blade.php
resources/views/errors/404.blade.php
resources/views/pages/show.blade.php
resources/views/search/all.blade.php
resources/views/shelves/show.blade.php
resources/views/users/preferences/index.blade.php
tests/Entity/PageRevisionTest.php
tests/Helpers/UserRoleProvider.php
tests/PublicActionTest.php
tests/TestCase.php
tests/User/UserManagementTest.php
tests/User/UserSearchTest.php