-
Notifications
You must be signed in to change notification settings - Fork 136
Closed
Description
Actual behavior
If we create a post in some project by the user, who is not a member of the project (like admin), then:
- the created post is not displayed after posting looks finished
- if we reload the page, posts feed will be never loaded, see for example https://connect.topcoder-dev.com/projects/4963
- there is an error in console which prevents loding:
Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'user.firstName')
Expected behavior
Possible fixes:
- don't let a user create posts or make comments unless he is a member of the project
- fix the bug, so if some post is created by non-member, posts have to be still loaded. Also, this could make sense, if some user were a member, created a post and left the project. So this bug has to be fixed anyway.
Possbile fix
I think the reason of the issue is that we only get informatino about members of the project, and we try to display a post from the non-member user, there is no data for him loaded which causes the error.
Environment
- Account used: suser1
