Skip to content

Commit 3f0ed28

Browse files
TD-5487 Issue showing multiple comments when clicked the back link after submitted the review on Frameworks section
1 parent d709470 commit 3f0ed28

File tree

1 file changed

+1
-0
lines changed
  • DigitalLearningSolutions.Web/Controllers/FrameworksController

1 file changed

+1
-0
lines changed

DigitalLearningSolutions.Web/Controllers/FrameworksController/Review.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public IActionResult LoadReview(int frameworkId, int reviewId)
6363
{
6464
var adminId = GetAdminId();
6565
var framework = frameworkService.GetBaseFrameworkByFrameworkId(frameworkId, adminId);
66+
if (framework.FrameworkReviewID == 0 || framework.FrameworkReviewID == null) return RedirectToAction("StatusCode", "LearningSolutions", new { code = 410 });
6667
if (framework == null) return StatusCode(404);
6768
if (framework.UserRole < 1) return StatusCode(403);
6869
var frameworkName = framework.FrameworkName;

0 commit comments

Comments
 (0)