mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-10 14:44:18 +00:00
fix: Add missing permission to add view (post)
This commit is contained in:
parent
1866da3f8a
commit
d476b13007
1 changed files with 2 additions and 2 deletions
|
@ -60,8 +60,8 @@ class AddLinks(View):
|
|||
return render(template_name=self.template, request=request, context=context)
|
||||
|
||||
def post(self, request):
|
||||
#url = request.POST['url']
|
||||
#if url:
|
||||
if not request.user.is_authenticated and not PUBLIC_INDEX:
|
||||
return redirect(f'/admin/login/?next={request.path}')
|
||||
form = AddLinkForm(request.POST)
|
||||
if form.is_valid():
|
||||
url = form.cleaned_data["url"]
|
||||
|
|
Loading…
Reference in a new issue