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 authored and amercader committed Jul 1, 2013
1 parent e02a5cf commit 340d758
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ckan/lib/helpers.py
Expand Up @@ -1270,10 +1270,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 340d758

Please sign in to comment.