[opw-web] utils.php: Fix can_submit permission for late submissions



commit 1732ab416c13f13fe8750955077f41bb97403949
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Wed Mar 19 15:18:09 2014 -0400

    utils.php: Fix can_submit permission for late submissions
    
    In a refactor, the ability to actually submit proposals late
    was lost.

 utils.php |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/utils.php b/utils.php
index c521da6..a8d597a 100644
--- a/utils.php
+++ b/utils.php
@@ -129,6 +129,8 @@ class ProjectPermissions {
 
                 if ($core->timestamp < $program_data['dl_mentor']) {
                     $late_submission = $this->any_late_submissions($program_data);
+                    if ($late_submission)
+                        $can_submit = true;
                 }
             }
         } else if ($role == 'g' || $role == 'r') {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]