Revision f534fb96 snf-astakos-app/astakos/im/api.py

b/snf-astakos-app/astakos/im/api.py
117 117
    return HttpResponse(content=data, mimetype=mimetype)
118 118

  
119 119
def get_menu(request):
120
    if request.method != 'GET':
121
        raise BadRequest('Method not allowed.')
122 120
    location = request.GET.get('location', '')
123 121
    exclude = []
124 122
    index_url = reverse('index')
......
135 133
    l = [{ 'url': absolute(index_url), 'name': "Sign in"}]
136 134
    if request.user.is_authenticated():
137 135
        l = []
138
        l.append({ 'url': absolute(reverse('astakos.im.views.edit_profile')),
136
        l.append({ 'url': absolute(reverse('astakos.im.views.index')),
139 137
                  'name': request.user.email})
140 138
        l.append({ 'url': absolute(reverse('astakos.im.views.edit_profile')),
141 139
                  'name': "View your profile" })

Also available in: Unified diff