Commits

funkybob  committed 1afdd52

Fixed permission names in url patterns

  • Participants
  • Parent commits 14704fe

Comments (0)

Files changed (1)

File gnocchi/ask/urls.py

 question_patterns = patterns('gnocchi.ask.views',
     url(r'^$', QuestionDetail.as_view(), name='question-detail'),
     url(r'^response/$',
-        permission_required('response.can_add')(QuestionRespond.as_view()),
+        permission_required('ask.add_response')(QuestionRespond.as_view()),
         name='question-response'
     ),
     url(r'^accept/(?P<response_id>\d+)/$', 'response_accept',
 urlpatterns = patterns('',
     url(r'^$', QuestionList.as_view(), name='question-list'),
     url(r'^ask/$',
-        permission_required('question.can_add')(QuestionAsk.as_view()),
+        permission_required('ask.add_question')(QuestionAsk.as_view()),
         name='question-ask'
     ),
     (r'^question/(?P<pk>\d+)/', include(question_patterns)),