-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #329 from UtrechtUniversity/development-embargo-ha…
…ndling Embargo handling
- Loading branch information
Showing
4 changed files
with
108 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/irule -r irods_rule_engine_plugin-irods_rule_language-instance -F | ||
# | ||
# Lift embargo on data access when embargo date is passed. | ||
run { | ||
uuGetUserType("$userNameClient#$rodsZoneClient", *usertype); | ||
|
||
if (*usertype != "rodsadmin") { | ||
failmsg(-1, "This script needs to be run by a rodsadmin"); | ||
} | ||
|
||
writeLine('stdout', 'Start finding vault packages under embargo that can be lifted'); | ||
*result = rule_lift_embargos_on_data_access(); | ||
writeLine('stdout', 'Finished finding vault packages under embargo that can be lifted with status *result'); | ||
} | ||
input null | ||
output ruleExecOut |