Skip to content
Snippets Groups Projects
Commit 2965b242 authored by Sebastian Mihalache's avatar Sebastian Mihalache
Browse files

fix(invite): add heInvited to coll status

parent be914e11
No related branches found
No related tags found
1 merge request!58Sprint #20 - Goal - Reviewers submit report
......@@ -52,7 +52,7 @@ module.exports = models => async (req, res) => {
})
// check collection status
if (collection.status !== 'submitted') {
if (!['submitted', 'heInvited'].includes(collection.status)) {
return res.status(400).json({
error: `Cannot invite HE while collection is in the status: ${
collection.status
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment