Skip to content

Commit

Permalink
Restore markdownx view permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-ni committed Sep 16, 2023
1 parent c11ef13 commit 5b44990
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion hknweb/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,20 @@
]

markdownx_urlpatterns = [
path("markdownx/", include("markdownx.urls")),
path(
"markdownx/upload/",
method_login_and_permission("markdown_pages.add_markdownpage")(
markdownx_views.ImageUploadView
).as_view(),
name="markdownx_upload",
),
path(
"markdownx/markdownify/",
method_login_and_permission("markdown_pages.add_markdownpage")(
markdownx_views.MarkdownifyView
).as_view(),
name="markdownx_markdownify",
),
]

safe_urlpatterns = [
Expand Down

0 comments on commit 5b44990

Please sign in to comment.