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 c7c5f9a commit 90b94bcCopy full SHA for 90b94bc
routes/api/ideation.js
@@ -917,7 +917,6 @@ module.exports = function (app) {
917
const ideaId = req.params.ideaId;
918
const ideationId = req.params.ideationId;
919
const topicId = req.params.topicId;
920
- const sessToken = createHash('sha256').update(req.cookies[config.session.name]).digest('base64');
921
const idea = await Idea.findOne({
922
where: {
923
id: ideaId
@@ -944,7 +943,7 @@ module.exports = function (app) {
944
943
res.forbidden();
945
}
946
947
- if ((!ideation.allowAnonymous && idea.authorId !== req.user.id) || (ideation.allowAnonymous && idea.sessionId !== sessToken)) {
+ if (idea.authorId !== req.user.id) {
948
return res.forbidden();
949
950
0 commit comments