File: bp-core/bp-core-actions.php
Description
bp_restrict_single_attachment()

Restrict user when visit attachment url from media/document.

Source: bp-core/bp-core-actions.php:158