mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
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:
parent
9fabb7b903
commit
29cc95bbdb
@ -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'),
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user