commit/galaxy-central: dan: Allow dataset owners and admins to view deleted datasets.

1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/58a0529c0a06/ Changeset: 58a0529c0a06 User: dan Date: 2013-05-08 19:22:02 Summary: Allow dataset owners and admins to view deleted datasets. Affected #: 1 file diff -r daa7c3397ae946dc039ddab0bb4bece9b0a53557 -r 58a0529c0a0654db9751f6021bb14fb5a36093ad lib/galaxy/webapps/galaxy/controllers/dataset.py --- a/lib/galaxy/webapps/galaxy/controllers/dataset.py +++ b/lib/galaxy/webapps/galaxy/controllers/dataset.py @@ -290,7 +290,7 @@ 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.deleted: + 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: return trans.show_error_message( "Please wait until this dataset finishes uploading before attempting to view it." ) 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