Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fix accept share

Blue Mouse6ffaa6e56587
diff --git a/src/user/user.controller.ts b/src/user/user.controller.ts
index 0009d79d4..0bea824ee 100644
--- a/src/user/user.controller.ts
+++ b/src/user/user.controller.ts
@@ -214,7 +214,7 @@ export class UserController {
throw new BadRequestException('The provided share ID is not valid')
}
- if (share[0]?.user?.id !== uid) {
+ if (share.user?.id !== uid) {
throw new BadRequestException('You are not allowed to delete this share')
}