Function __global->has_attachment_access

Definitions

sources/attachments.php

  • Find if the specified member has access to view the specified attachment.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: bool

Parameters

Name Type Default Set Range Description
$member_id MEMBER required parameter N/A N/A The member being checked whether to have the access
$id AUTO_LINK required parameter N/A N/A The attachment being checked
$db ?object Null N/A N/A The database connector to use (null: site DB)

Return

  • Whether the member has attachment access
  • Type: boolean
  • Set: N/A
  • Range: N/A