mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-09 20:12:10 +10:00
feat(admin ui): add modifying game descriptions
This commit is contained in:
@ -15,9 +15,10 @@ export default defineNitroPlugin((nitro) => {
|
||||
case 403:
|
||||
const userId = await event.context.session.getUserId(event);
|
||||
if (userId) break;
|
||||
console.log("user is signed out, redirecting");
|
||||
return sendRedirect(
|
||||
event,
|
||||
`/signin?redirect=${encodeURIComponent(event.path)}`,
|
||||
`/signin?redirect=${encodeURIComponent(event.path)}`
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user