@core_helper
def groups_available(am_member=False):
 context = {}
 data_dict = {'available_only': True, 'am_member': am_member}
 return logic.get_action('group_list_authz')(context, data_dict)

@ core_helper def groups_available ( am_member = False ) : context = { } data_dict = { 'available_only' : True , 'am_member' : am_member } return logic . get_action ( 'group_list_authz' ) ( context , data_dict )
return a list of the groups that the user is authorized to edit .