We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45f1def commit 3267e93Copy full SHA for 3267e93
routes/api/ideation.js
@@ -907,7 +907,6 @@ module.exports = function (app) {
907
const ideaId = req.params.ideaId;
908
const ideationId = req.params.ideationId;
909
const topicId = req.params.topicId;
910
- const sessToken = createHash('sha256').update(req.cookies[config.session.name]).digest('base64');
911
const idea = await Idea.findOne({
912
where: {
913
id: ideaId
@@ -934,7 +933,7 @@ module.exports = function (app) {
934
933
res.forbidden();
935
}
936
937
- if ((!ideation.allowAnonymous && idea.authorId !== req.user.id) || (ideation.allowAnonymous && idea.sessionId !== sessToken)) {
+ if (idea.authorId !== req.user.id) {
938
return res.forbidden();
939
940
0 commit comments