commit/galaxy-central: natefoo: Fix a typo in library permissions check.

1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/80bd52837f23/ changeset: 80bd52837f23 user: natefoo date: 2012-09-17 18:47:13 summary: Fix a typo in library permissions check. affected #: 1 file diff -r 08f1d09a65a98977817ca1f1bd34fc266d61aa24 -r 80bd52837f23ba3873c8ed3d029086f739926874 lib/galaxy/web/base/controller.py --- a/lib/galaxy/web/base/controller.py +++ b/lib/galaxy/web/base/controller.py @@ -232,7 +232,7 @@ raise ItemOwnershipException( "%s is not owned by the current user" % item.__class__.__name__, type='error' ) if check_accessible: if type( item ) in ( trans.app.model.LibraryFolder, trans.app.model.LibraryDatasetDatasetAssociation, trans.app.model.LibraryDataset ): - if not ( trans.user_is_admin() or trans.app.security_agent.can_access_library_i9tem( trans.get_current_user_roles(), item, trans.user ) ): + if not ( trans.user_is_admin() or trans.app.security_agent.can_access_library_item( trans.get_current_user_roles(), item, trans.user ) ): raise ItemAccessibilityException( "%s is not accessible to the current user" % item.__class__.__name__, type='error' ) else: # Verify accessible. 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)
-
Bitbucket