erwre
All checks were successful
Deploy / deploy-staging (push) Successful in 6s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-04-22 01:41:12 +02:00
parent 91dc84d027
commit e83d187a16
7 changed files with 215 additions and 127 deletions

View File

@@ -4,12 +4,7 @@ declare(strict_types=1);
require_auth();
$user = auth_user() ?? [];
$isAdmin = auth_is_admin();
$ownerSub = trim((string) ($user['sub'] ?? 'local'));
$requestedOwner = trim((string) ($_GET['owner_sub'] ?? ''));
if ($isAdmin && $requestedOwner !== '') {
$ownerSub = $requestedOwner;
}
$instrumentId = (int) ($_GET['instrument_id'] ?? 0);
if ($instrumentId <= 0) {