mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Users: Allow non-admin users to log out. Fixes issue #999.
Signed-off-by: Johannes Keyser <johanneskeyser@posteo.de> Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
1 parent
fe46ddb63d
commit
063c0fd7ce
1 file changed
+1
-1
@@ -40,7 +40,7 @@ urlpatterns = [
|
||||
name='change_password'),
|
||||
# Add Django's login/logout urls
|
||||
url(r'^accounts/login/$', public(SSOLoginView.as_view()), name='login'),
|
||||
url(r'^accounts/logout/$', SSOLogoutView.as_view(),
|
||||
url(r'^accounts/logout/$', non_admin_view(SSOLogoutView.as_view()),
|
||||
{'next_page': reverse_lazy('index')}, name='logout'),
|
||||
url(r'^users/firstboot/$', public(views.FirstBootView.as_view()),
|
||||
name='firstboot'),
|
||||
|
||||
Reference in new issue
Block a user