I'm changing my kitchen and noticed this junction box screwed to a joist under the floorboards. I know they are meant to be accessible and this isn't. I am just asking if I am strictly allowed due to laws etc. as I don't know so thought I'd ask. I would replace with WAGOBOX and connectors.
