commit/galaxy-central: dan: Display error message when trying to view / download purged datasets.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/bc3f20c535f7/ Changeset: bc3f20c535f7 User: dan Date: 2013-05-08 20:22:34 Summary: Display error message when trying to view / download purged datasets. Affected #: 1 file diff -r 79eb75175339ec9c0f7a8a5395b2e30491369952 -r bc3f20c535f780dec3d6d33c3e98a1fe4df4764e lib/galaxy/webapps/galaxy/controllers/dataset.py --- a/lib/galaxy/webapps/galaxy/controllers/dataset.py +++ b/lib/galaxy/webapps/galaxy/controllers/dataset.py @@ -290,6 +290,8 @@ raise paste.httpexceptions.HTTPRequestRangeNotSatisfiable( "Invalid reference dataset id: %s." % str( hda_id ) ) if not self._can_access_dataset( trans, data ): return trans.show_error_message( "You are not allowed to access this dataset" ) + if data.purged: + return trans.show_error_message( "The dataset you are attempting to view has been purged." ) if data.deleted and not ( trans.user_is_admin() or ( data.history and trans.get_user() == data.history.user ) ): return trans.show_error_message( "The dataset you are attempting to view has been deleted." ) if data.state == trans.model.Dataset.states.UPLOAD: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org