Camera permissions not granted- access room a silent participant

I’ve just noticed a problem with the app I’ve been developing. If there is an active session, and someone joins the session but refuses access to their camera and microphone when prompted, it still lets them access the room to observe everything others are doing. It’s kinda creepy.
I’m sure it’s because of the way I’ve developed this, but how do I find out if someone has granted access to their camera and mic so that I can prevent them from accessing the stream? Or at least indicate they’re there. At the moment, they don’t get added to the video-container div, so there’s no way to tell they are there at all.

how do I find out if someone has granted access to their camera and mic so that I can prevent them from accessing the stream?

Checking accessAllowed or accessDenied events

Thank you. Got it sorted with your help.