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 2017-08-11 17:20:35 +05:30 committed by Johannes Keyser
parent 9fabb7b903
commit 29cc95bbdb
No known key found for this signature in database
GPG Key ID: D1431C2C533CF0D0

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'),
]