Function __global->has_privacy_access
Definitions
sources/content_privacy.php
- Check to see if some content may be viewed.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: bool
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$content_type | ID_TEXT | required parameter | N/A | N/A | The content type |
$content_id | ID_TEXT | required parameter | N/A | N/A | The content ID |
$viewing_member_id | ?MEMBER | Null | N/A | N/A | Viewing member to check privacy against (null: current member) |
$additional_or | string | Blank (empty string) | N/A | N/A | Additional OR clause for letting the user through |
$submitter | ?MEMBER | Null | N/A | N/A | Member owning the content (null: do dynamically in query via content hook). Usually pass as null |
Return
- Whether there is access
- Type: boolean
- Set: N/A
- Range: N/A