[hg] galaxy 2513: Only require access permission to view private...
details: http://www.bx.psu.edu/hg/galaxy/rev/3574137cf7fb changeset: 2513:3574137cf7fb user: Nate Coraor <nate@bx.psu.edu> date: Thu Jul 30 14:13:04 2009 -0400 description: Only require access permission to view private datasets at external sites. 1 file(s) affected in this change: lib/galaxy/web/controllers/dataset.py diffs (12 lines): diff -r 315ac197ff33 -r 3574137cf7fb lib/galaxy/web/controllers/dataset.py --- a/lib/galaxy/web/controllers/dataset.py Thu Jul 30 12:56:16 2009 -0400 +++ b/lib/galaxy/web/controllers/dataset.py Thu Jul 30 14:13:04 2009 -0400 @@ -144,7 +144,7 @@ redirect_url = kwd['redirect_url'] % urllib.quote_plus( kwd['display_url'] ) if trans.app.security_agent.allow_action( None, data.permitted_actions.DATASET_ACCESS, dataset = data ): return trans.response.send_redirect( redirect_url ) # anon access already permitted by rbac - if trans.app.security_agent.allow_action( trans.user, data.permitted_actions.DATASET_MANAGE_PERMISSIONS, dataset = data ): + if trans.app.security_agent.allow_action( trans.user, data.permitted_actions.DATASET_ACCESS, dataset = data ): trans.app.host_security_agent.set_dataset_permissions( data, trans.user, site ) return trans.response.send_redirect( redirect_url ) else:
participants (1)
-
Nate Coraor