Ticket #10694: user_change_password_permissions.diff

File user_change_password_permissions.diff, 574 bytes (added by james Turnbull, 16 years ago)
  • django/contrib/auth/admin.py

     
    9696        }, context_instance=template.RequestContext(request))
    9797
    9898    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):
    100100            raise PermissionDenied
    101101        user = get_object_or_404(self.model, pk=id)
    102102        if request.method == 'POST':
Back to Top