From 2371873ccbf7dc4a6d6495654f97179072423d98 Mon Sep 17 00:00:00 2001 From: Nate Coraor Date: Mon, 17 Sep 2012 12:47:13 -0400 Subject: [PATCH] Fix a typo in library permissions check. --- lib/galaxy/web/base/controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/web/base/controller.py b/lib/galaxy/web/base/controller.py index bea851abdaf..9bfce24e50f 100644 --- a/lib/galaxy/web/base/controller.py +++ b/lib/galaxy/web/base/controller.py @@ -232,7 +232,7 @@ class SharableItemSecurityMixin: 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.