Skip to content

Commit

Permalink
Remove 'View PREMIS metadata' permission - invoke hook_update_N
Browse files Browse the repository at this point in the history
  • Loading branch information
ruebot committed Apr 23, 2014
1 parent 5832120 commit 3dfee29
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions islandora_premis.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

/**
* @file
* This file contains all install related hooks.
*/

/**
* Implements hook_update_N()
*
* Remove 'View PREMIS metadata' permission
*/
function islandora_premis_update_7000(&$sandbox) {
permissions_revoke_permissions('anonymous user', 'view premis metadata');
$t = get_t();
return $t("Islandora PREMIS database updates complete");
}

0 comments on commit 3dfee29

Please sign in to comment.