Project

General

Profile

Revision ed912c77

Added by Assos Assos about 6 years ago

Weekly update of contrib modules

View differences:

drupal7/sites/all/modules/libraries/libraries.install
34 34
  // during the 7.x-2.x cycle.
35 35
  registry_rebuild();
36 36
}
37

  
38
/**
39
 * Grant the "View library reports" permission to roles with the "View site reports" permission.
40
 */
41
function libraries_update_7202() {
42
  $rids = array_keys(user_roles(FALSE, 'access site reports'));
43
  foreach ($rids as $rid) {
44
    _update_7000_user_role_grant_permissions($rid, array('access library reports'), 'libraries');
45
  }
46
}

Also available in: Unified diff