Skip to content

Commit

Permalink
[#626] Tweak groups_available docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hammond committed Jun 26, 2013
1 parent ff5006d commit 7d2e35c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ckan/lib/helpers.py
Expand Up @@ -1263,10 +1263,13 @@ def popular(type_, number, min=1, title=None):


def groups_available(am_member=False):
''' return a list of available groups
'''Return a list of the groups that the user is authorized to edit.
:param am_member: if True return only the groups the logged-in user is a
member of, otherwise return all groups that the user is authorized to
edit (optional, default: False)
:type am-member: boolean
:param am_member: only show groups user is a member of
:type am-am: bool
'''
context = {}
data_dict = {'available_only': True, 'am_member': am_member}
Expand Down

0 comments on commit 7d2e35c

Please sign in to comment.