Browse Source

Change update hook to not update permissions; warn only.

pull/677/head
Rosie Le Faive 8 years ago
parent
commit
aaaa165611
  1. 10
      islandora.install

10
islandora.install

@ -140,10 +140,10 @@ function islandora_update_7001(&$sandbox) {
* Match permissions for viewing all objects.
*/
function islandora_update_7002(&$sandbox) {
$roles = user_roles(FALSE, ISLANDORA_VIEW_OBJECTS);
foreach ($roles as $rid => $role) {
user_role_grant_permissions($rid, array(ISLANDORA_ACCESS_INACTIVE_AND_DELETED_OBJECTS));
}
$t = get_t();
return $t("Islandora permission updates complete. Please manage permissions to assign the new permission, 'view inactive or deleted objects', to appropriate roles.");
return $t("A new permission 'view inactive or deleted objects' has been added " .
"to the system, and these objects can no longer be viewed by someone without " .
"this permission. If you have users who need to view inactive or deleted " .
"objects please add the new permission to appropriate roles. This is " .
"especially important for sites using the 'Islandora Simple Workflow' module");
}

Loading…
Cancel
Save