Skip to content

Commit

Permalink
164796898-feature(editTag): an Author will be able to add tags to the…
Browse files Browse the repository at this point in the history
…ir article

- Only an author of an article will be able to edit the tags of their article

[Delivers #164796898]
  • Loading branch information
toluola committed Apr 17, 2019
1 parent f46b338 commit 621bd33
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/routers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ router
.route('/articles/:id?')
.post(Auth.authenticateUser, articleValidation, addArticle)
.delete(checkParam, Auth.authenticateUser, verifyArticle, isAuthor, deleteArticle)
.put(checkParam, Auth.authenticateUser, articleValidation, verifyArticle, isAuthor, editArticle)
.put(checkParam, Auth.authenticateUser, isAuthor, editArticleTag);
.put(checkParam, Auth.authenticateUser, articleValidation, verifyArticle, isAuthor, editArticle);

router
.post('/login', checkFields, passportAuth, login)
Expand Down

0 comments on commit 621bd33

Please sign in to comment.