You are here

function config_perms_persistant in Custom Permissions 6.2

Peristant permissions

File

./config_perms.module, line 185
Adds more granular permissions for items under 'administer site configuration'.

Code

function config_perms_persistant() {
  $persistant = array(
    array(
      'name' => 'administer themes',
      'status' => 1,
      'paths' => array(),
    ),
    array(
      'name' => 'administer enabled themes',
      'status' => 1,
      'paths' => array(),
    ),
  );
  foreach ($persistant as $p) {
    $perms[config_perms_generate_machine_name($p['name'])] = (object) $p;
  }
  return $perms;
}