Permalink
Browse files

implements #190 and doesn't email ppl if dry_run

  • Loading branch information...
sebastfr committed Jan 20, 2014
1 parent 367490c commit f38fde34494cce3c665cd7088050ccfd88c9d527
Showing with 6 additions and 10 deletions.
  1. +6 −10 bin/lift_embargos
View
@@ -150,16 +150,12 @@ $list->map( sub {
$doc->set_value( "date_embargo", undef );
$doc->commit( 1 ); # pass force through to parent eprint
$eprint->generate_static;
- }
- $doc->set_value( "security", "public" );
- $doc->set_value( "date_embargo", undef );
- $doc->commit( 1 );
- $eprint->commit( 1 );
- $eprint->generate_static;
- # post-processing, eg. send notification of embargo expiry
- if( $session->can_call( "notify_embargo_expiry" ) )
- {
- $session->call( "notify_embargo_expiry", $eprint, $doc );
+
+ # post-processing, eg. send notification of embargo expiry
+ if( $session->can_call( "notify_embargo_expiry" ) )
+ {
+ $session->call( "notify_embargo_expiry", $eprint, $doc );
+ }
}
} );

0 comments on commit f38fde3

Please sign in to comment.