snipe-it/app/Http/Middleware
Tobias Regnery b2a5d86e30 Fixes #14701 - wrong total asset count
The total asset count in the sidenav shows the ready to deploy count instead of the total count.
Fix this by adjusting the query to all assets. Also respect the setting for archived assets.
Add a default value for total assets, since we are now using the settings-variable, which is not available during the setup process.

While at it, move the block for total assets before the ready to deploy assets to match the ordering of the sidenav.

Signed-off-by: Tobias Regnery <tobias.regnery@gmail.com>
2024-05-08 09:34:35 +02:00
..
AssetCountForSidebar.php Fixes #14701 - wrong total asset count 2024-05-08 09:34:35 +02:00
CheckForDebug.php Adopt Laravel coding style 2021-06-10 20:15:52 +00:00
CheckForSetup.php Fixed #12772 - use the APP_URL config more consistently 2023-04-05 16:05:40 -07:00
CheckForTwoFactor.php Fixed visibility for constants and methods 2023-02-06 12:44:02 -08:00
CheckLocale.php Fix [sc-25008] - correct and improve legacy language warnings 2024-03-08 14:04:21 +00:00
CheckPermissions.php Updates the Gate “use” statement to be more specific 2023-03-18 11:58:09 -07:00
CheckUserIsActivated.php Logout user when their activated status is switched to off 2022-03-29 13:44:53 +01:00
EncryptCookies.php Adopt Laravel coding style 2021-06-10 20:15:52 +00:00
NoSessionStore.php Adopt Laravel coding style 2021-06-10 20:15:52 +00:00
PreventBackHistory.php Fixed typo (thanks @ssddanbrown) 2021-10-08 13:39:49 -05:00
PreventRequestsDuringMaintenance.php Shift HTTP kernel and middleware 2021-06-10 20:17:04 +00:00
RedirectIfAuthenticated.php Fixes #2448 - redirect to intended page 2016-10-29 07:32:48 -07:00
SecurityHeaders.php Reverting CSP change 2024-03-01 12:25:14 +00:00
TrimStrings.php Shift HTTP kernel and middleware 2021-06-10 20:17:04 +00:00
TrustHosts.php Shift HTTP kernel and middleware 2021-06-10 20:17:04 +00:00
TrustProxies.php Shift HTTP kernel and middleware 2021-06-10 20:17:04 +00:00
VerifyCsrfToken.php Adopt Laravel coding style 2021-06-10 20:15:52 +00:00