Make help accessible for logged-in non-admin users

Signed-off-by: Hemanth Kumar Veeranki <hemanthveeranki@gmail.com>

Reviewed-by: Johannes Keyser <johanneskeyser@posteo.de>
This commit is contained in:
Hemanth Kumar Veeranki authored and Johannes Keyser committed 2017-08-11 23:54:35 +02:00
1 parent 9fabb7b903
commit 29cc95bbdb
1 file changed
+7 -5
+7 -5
View File
@@ -21,6 +21,8 @@ URLs for the Help module
from django.conf.urls import url
from plinth.utils import non_admin_view
from . import help as views
@@ -28,9 +30,9 @@ urlpatterns = [
# having two urls for one page is a hack to help the current url/menu
# system highlight the correct menu item. Every submenu-item with the same
# url prefix as the main-menu is highlighted automatically.
url(r'^help/$', views.index, name='index'),
url(r'^help/index/$', views.index, name='index_explicit'),
url(r'^help/about/$', views.about, name='about'),
url(r'^help/manual/$', views.manual, name='manual'),
url(r'^help/status-log/$', views.status_log, name='status-log'),
url(r'^help/$', non_admin_view(views.index), name='index'),
url(r'^help/index/$', non_admin_view(views.index), name='index_explicit'),
url(r'^help/about/$', non_admin_view(views.about), name='about'),
url(r'^help/manual/$', non_admin_view(views.manual), name='manual'),
url(r'^help/status-log/$', non_admin_view(views.status_log), name='status-log'),
]