[ticket/12738] Pass $this->config in content_visibility constructor

PHPBB3-12738
Merge pull request #2838 from dhruvgoel92/ticket/12738

[ticket/12738] Pass $this->config in content_visibility constructor

* dhruvgoel92/ticket/12738:
  [ticket/12738] Pass $this->config in content_visibility constructor