From 352457f576e29fc97b56d60d403b01b9405d7ae7 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sat, 14 May 2016 01:49:29 -0400 Subject: [PATCH] Don't add the current user to the template context to avoid triggering user managment action links. --- mayan/apps/common/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mayan/apps/common/views.py b/mayan/apps/common/views.py index 87598c1f17..5e8f47481d 100644 --- a/mayan/apps/common/views.py +++ b/mayan/apps/common/views.py @@ -33,13 +33,13 @@ class CurrentUserDetailsView(SingleObjectDetailView): def get_extra_context(self, **kwargs): return { - 'object': self.get_object(), + 'object': None, 'title': _('Current user details'), } class CurrentUserEditView(SingleObjectEditView): - extra_context = {'title': _('Edit current user details')} + extra_context = {'object': None, 'title': _('Edit current user details')} form_class = UserForm post_action_redirect = reverse_lazy('common:current_user_details')