[opw-web] manage_projects: Remove restriction on viewing inactive rounds



commit 7b56649e3d0ff8a27b57219c62b99a0c7622db8c
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Tue Oct 18 13:03:46 2016 -0400

    manage_projects: Remove restriction on viewing inactive rounds
    
    It can be useful for a mentor for a round to be able to see what
    projects where there for a previous round (they can already view
    past projects.)

 modules/mod_manage_projects.php |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/modules/mod_manage_projects.php b/modules/mod_manage_projects.php
index 8f4588e..0b61463 100644
--- a/modules/mod_manage_projects.php
+++ b/modules/mod_manage_projects.php
@@ -21,15 +21,13 @@ if ($organization_id > 0)
            "LEFT JOIN {$db->prefix}programs prg " .
            "ON prg.id = o.program_id " .
            "WHERE o.id = :organization_id " .
-           "AND prg.id = :program_id " .
-           (!$user->is_admin ? "AND prg.is_active = 1" : "");
+           "AND prg.id = :program_id ";
 }
 else
 {
     $sql = "SELECT COUNT(*) AS count " .
            "FROM {$db->prefix}programs " .
-           "WHERE id = :program_id " .
-           (!$user->is_admin ? "AND is_active = 1" : "");
+           "WHERE id = :program_id ";
 }
 
 $row = $db->query($sql,


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