@86d-app/reviews 0.0.19 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -38,9 +38,9 @@ export const submitReview = createStoreEndpoint(
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
//
|
|
42
|
-
const authorEmail =
|
|
43
|
-
?
|
|
41
|
+
// Authenticated users must use session email — never fall back to body
|
|
42
|
+
const authorEmail = ctx.context.session
|
|
43
|
+
? ctx.context.session.user.email
|
|
44
44
|
: ctx.body.authorEmail;
|
|
45
45
|
|
|
46
46
|
const review = await controller.createReview({
|