Ticket #10694: user_change_password_permissions.diff
File user_change_password_permissions.diff, 574 bytes (added by , 16 years ago) |
---|
-
django/contrib/auth/admin.py
96 96 }, context_instance=template.RequestContext(request)) 97 97 98 98 def user_change_password(self, request, id): 99 if not request.user.has_perm('auth.change_user'):99 if not self.has_change_permission(request): 100 100 raise PermissionDenied 101 101 user = get_object_or_404(self.model, pk=id) 102 102 if request.method == 'POST':