Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.0.X] Fixed #10694: correctly check permissions in the change passw…

…ord admin. Thanks, jturnbull. Backport of r10591 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10592 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit f0e7dca9d1140731d673bafe5530862d7b041171 1 parent 283442a
@jacobian jacobian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/auth/admin.py
View
2  django/contrib/auth/admin.py
@@ -90,7 +90,7 @@ def add_view(self, request):
}, context_instance=template.RequestContext(request))
def user_change_password(self, request, id):
- if not request.user.has_perm('auth.change_user'):
+ if not self.has_change_permission(request):
raise PermissionDenied
user = get_object_or_404(self.model, pk=id)
if request.method == 'POST':
Please sign in to comment.
Something went wrong with that request. Please try again.