added missing ! to hasprivilige lol

This commit is contained in:
Alex
2025-03-01 14:40:00 +01:00
parent 2342ce24de
commit c28354ed2d
3 changed files with 7 additions and 8 deletions

View File

@@ -20,10 +20,6 @@ export async function load({ cookies, fetch, locals }) {
}
const data = await response.json();
// Check if the server sent a new token
const newToken = response.headers.get('Set-Cookie');
refreshCookie(newToken, cookies);
/** @type {App.Locals['users']}*/
const users = data.users;
@@ -32,6 +28,11 @@ export async function load({ cookies, fetch, locals }) {
});
locals.users = users;
// Check if the server sent a new token
const newToken = response.headers.get('Set-Cookie');
refreshCookie(newToken, cookies);
return {
subscriptions: locals.subscriptions,
licence_categories: locals.licence_categories,