Restrict Activity Stream to Related Project Space (User Role)

How do I restrict the activity stream to the related project space only? Because currently, the activity stream shown for another project. Not the assigned project

Thank you!