Skip to content
Snippets Groups Projects
Verified Commit 37b0bf0b authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

add-forge-now: Restrict access to the moderation request view

parent 229b2f03
No related branches found
Tags v0.3.2
No related merge requests found
......@@ -11,11 +11,6 @@ from swh.web.admin.adminurls import AdminUrls
urlpatterns = [
url(r"^add/$", views.create_request, name="forge-add"),
url(
r"^request/(?P<request_id>.+)/$",
views.request_dashboard,
name="request-dashboard-forge-add",
),
]
urlpatterns += AdminUrls.get_url_patterns()
......@@ -135,6 +135,10 @@ def moderation_dashboard(request):
return render(request, "add_forge_now/moderation.html", {"existing": existing},)
@admin_route(
r"request/(?P<request_id>.+)/", view_name="request-dashboard-forge-add",
)
@staff_member_required(view_func=None, login_url=settings.LOGIN_URL)
def request_dashboard(request, request_id):
"""Moderation dashboard to allow listing current requests.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment