You are here

function libraries_update_7202 in Libraries API 7.2

Grant the "View library reports" permission to roles with the "View site reports" permission.

File

./libraries.install, line 41
Install, uninstall, and update functions for libraries.module.

Code

function libraries_update_7202() {
  $rids = array_keys(user_roles(FALSE, 'access site reports'));
  foreach ($rids as $rid) {
    _update_7000_user_role_grant_permissions($rid, array(
      'access library reports',
    ), 'libraries');
  }
}