codeuino / social-platform-donut-backend

Donut API:
http://donut-api-prod.codeuino.org/
GNU General Public License v3.0
24 stars 57 forks source link

208 #209

Closed kaustubhai closed 3 years ago

kaustubhai commented 3 years ago

Problem

Github Issue Number: #208 Authentication was not required to update and delete a post

Solution of problem

Permission utility function was returning a promise which was not being taken care of. I added await to make it count

Type of Change

[x] Bug fix [ ] New Feature [ ] Development of UI/UX prototypes [ ] Small refactor [ ] Change in Documentation

Checklist

[x] My code follows the same style as the codebase [ ] My Code change requires a change in documentation [ ] I have updated the Readme accordingly [x] I made PR against development branch [x] I have run the test cases locally and it's passing. [x] I have squashed my commits