You are here

function securitytxt_permission in Security.txt 7

Implements hook_permission().

See also

https://api.drupal.org/api/drupal/modules%21system%21system.api.php/func...

File

./securitytxt.module, line 124
Module which implements the security.txt standard for drupal.

Code

function securitytxt_permission() {
  return array(
    'administer securitytxt' => array(
      'title' => t('Administer security.txt'),
      'description' => t('Allows configuring and signing of the security.txt file.'),
      'restrict access' => TRUE,
    ),
    'view securitytxt' => array(
      'title' => t('View security.txt'),
      'description' => t('Allows access to the security.txt and security.txt.sig files. You will almost certinaly want to grant this permission to both the Anonymous and Authenticated user roles.'),
    ),
  );
}