Function __global->can_submit_to_gallery

Definitions

sources/galleries.php

  • See whether the current member can submit to the named *member* gallery. Note - this function assumes that members have general submit permission, and does not check for gallery read access.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$name ID_TEXT No No required parameter N/A N/A The gallery name
$gallery_info ?array No No Null N/A N/A Gallery database row (null: lookup)

Returns

  • The owner of the gallery (false: we aren't allowed to submit to it) (-2: not a member gallery)
  • Type: ~integer
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * See whether the current member can submit to the named *member* gallery. Note - this function assumes that members have general submit permission, and does not check for gallery read access.
 *
 * @param  ID_TEXT $name The gallery name
 * @param  ?array $gallery_info Gallery database row (null: lookup)
 * @return ~integer The owner of the gallery (false: we aren't allowed to submit to it) (-2: not a member gallery)
 */

function can_submit_to_gallery(string $name, ?array $gallery_info = null)