From 063c0fd7ceb45aefff0c689f7c9c27b75c84094c Mon Sep 17 00:00:00 2001 From: Johannes Keyser Date: Sun, 10 Sep 2017 17:16:03 +0200 Subject: [PATCH] Users: Allow non-admin users to log out. Fixes issue #999. Signed-off-by: Johannes Keyser Reviewed-by: Joseph Nuthalapati --- plinth/modules/users/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth/modules/users/urls.py b/plinth/modules/users/urls.py index 5d00293d2..e306e2128 100644 --- a/plinth/modules/users/urls.py +++ b/plinth/modules/users/urls.py @@ -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'),