ckan/ckan — pull request #1918 by seanh (2014-09-10 11:57:10+00:00)
Title: organization_list_for_user() fixes

1. Fix a bug in `organization_list_for_user()` that it was returning organizations that the user was previously a member of, instead of just the current ones

2. Add a docstring to `organization_list_for_user()` that explains what it does

3. Add tests for `organization_list_for_user()` (it currently doesn't have any, either new or legacy)