hotfix: viewer cannot access Vorgang with correct PIN, temp remove check if logged-in
All checks were successful
InnoHub Processor/tatort/pipeline/head This commit looks good
All checks were successful
InnoHub Processor/tatort/pipeline/head This commit looks good
This commit is contained in:
@@ -2,9 +2,6 @@ import { getVorgaenge } from '$lib/server/vorgangService';
|
|||||||
import { json } from '@sveltejs/kit';
|
import { json } from '@sveltejs/kit';
|
||||||
|
|
||||||
export async function GET({ locals }) {
|
export async function GET({ locals }) {
|
||||||
if (!locals.user) {
|
|
||||||
return json({ error: 'Unauthorized' }, { status: 401 });
|
|
||||||
}
|
|
||||||
|
|
||||||
const vorgaenge = getVorgaenge();
|
const vorgaenge = getVorgaenge();
|
||||||
|
|
||||||
|
|||||||
@@ -45,9 +45,6 @@ export async function HEAD({ params }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function GET({ params, locals }) {
|
export async function GET({ params, locals }) {
|
||||||
if (!locals.user) {
|
|
||||||
return json({ error: 'Unauthorized' }, { status: 401 });
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const vorgangToken = params.vorgang;
|
const vorgangToken = params.vorgang;
|
||||||
|
|||||||
Reference in New Issue
Block a user