~vcs-imports/reviewboard/trunk

« back to all changes in this revision

Viewing changes to reviewboard/reviews/detail.py

  • Committer: Christian Hammond
  • Date: 2023-11-07 06:16:03 UTC
  • mfrom: (4947.1.350)
  • Revision ID: git-v1:00c845582f57ac3df206a66fe9603a1958b87fb9
Merge branch 'release-6.x'

Show diffs side-by-side

added added

removed removed

Lines of Context:
318
318
            self.latest_changedesc_timestamp = self.changedescs[0].timestamp
319
319
 
320
320
        # Get the active draft (if any).
321
 
        if self._needs_draft:
322
 
            self.draft = self.review_request.get_draft(self.request.user)
 
321
        if (self._needs_draft and
 
322
            self.review_request.is_mutable_by(self.request.user)):
 
323
            self.draft = self.review_request.get_draft()
323
324
 
324
325
        # Get diffsets.
325
326
        if self._needs_reviews: