mern-chat-app
mern-chat-app copied to clipboard
Added check if requester is admin functionality in 2 chat controllers.
Checks for if the user requesting to add/remove people from a group is the admin of the group have been added in the 'addToGroup' and 'removeFromGroup' chat controllers.
hi Abhilaksh , Wasn't this feature added beforehand?
hi Abhilaksh , Wasn't this feature added beforehand?
Hi. No, I don't think it was. The code I changed had a comment where it said to check the functionality, I think it was for a reminder to add this feature later, so I added it and created a PR.