get_resource_access

Retrieves the access level for the currently logged-in user for a specified resource.

Variable Description Data type
$resource * Resource ID integer

Return values

The access levels returned are:
  • 0 = Full Access (download all sizes)
  • 1 = Restricted Access (download only those sizes that are set to allow restricted downloads)
  • 2 = Confidential (no access)
  • 99 = Resource not found
  • FALSE = The supplied resource ID was not numeric.