Verified Commit 8da1de6a authored by Thibaut Broggi's avatar Thibaut Broggi
Browse files

Fix permissions for article edition

parent cb0c3f94
Pipeline #1763 passed with stages
in 2 minutes and 26 seconds
......@@ -90,7 +90,7 @@ class ArticleDetailView(LoginRequiredMixin, DetailView):
class ArticleEdit(PermissionRequiredMixin, UpdateView):
model = Article
permission_required = 'can_edit'
permission_required = 'rp.can_edit'
fields = ['screenshot', 'url', 'lang', 'title', 'tags', 'extracts']
success_url = reverse_lazy("rp:article-list")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment