commit/galaxy-central: martenson: library permissions API - check whether payload is present in the kwd and throw exception if it is not, also bugfix
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/36bf58f83847/ Changeset: 36bf58f83847 User: martenson Date: 2014-08-28 17:01:32 Summary: library permissions API - check whether payload is present in the kwd and throw exception if it is not, also bugfix Affected #: 1 file diff -r b7d851e1c64c79f0c75e4a746e127a5c3832129d -r 36bf58f838476e738d2efa893b1318c6f7bde97f lib/galaxy/webapps/galaxy/api/libraries.py --- a/lib/galaxy/webapps/galaxy/api/libraries.py +++ b/lib/galaxy/webapps/galaxy/api/libraries.py @@ -386,8 +386,11 @@ action = kwd.get( 'action', None ) if action is None: - return self.set_permissions_old( trans, library ) - # raise exceptions.RequestParameterMissingException( 'The mandatory parameter "action" is missing.' ) + payload = kwd.get( 'payload', None ) + if payload is not None: + return self.set_permissions_old( trans, library, payload, **kwd ) + else: + raise exceptions.RequestParameterMissingException( 'The mandatory parameter "action" is missing.' ) elif action == 'remove_restrictions': trans.app.security_agent.make_library_public( library ) if not trans.app.security_agent.library_is_public( library ): 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