Function __global->has_delete_author_permission

Definitions

sources/authors.php

  • Find if a member's usergroup has permission to delete an author.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$member_id MEMBER No No required parameter N/A N/A The member being checked whether to have the access
$author ID_TEXT No No required parameter N/A N/A An author

Returns

  • Whether the member can edit this author
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find if a member's usergroup has permission to delete an author.
 *
 * @param  MEMBER $member_id The member being checked whether to have the access
 * @param  ID_TEXT $author An author
 * @return boolean Whether the member can edit this author
 */

function has_delete_author_permission(int $member_id, string $author) : bool