[opw-web] Don't allow signing up as mentor or student for an inactive program
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [opw-web] Don't allow signing up as mentor or student for an inactive program
- Date: Tue, 18 Oct 2016 17:11:52 +0000 (UTC)
commit dfe84234056136e01e74bab7013e67754914ee3b
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Tue Oct 18 13:10:47 2016 -0400
Don't allow signing up as mentor or student for an inactive program
utils.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/utils.php b/utils.php
index 514a709..e80cc8f 100644
--- a/utils.php
+++ b/utils.php
@@ -157,7 +157,7 @@ class ProjectPermissions {
$can_submit = true;
}
}
- } else if ($role == 'g' || $role == 'r' || $role == 'x') {
+ } else if ($program_data['is_active'] && ($role == 'g' || $role == 'r' || $role == 'x')) {
if ($core->timestamp <= $program_data['dl_student']) {
$can_apply_student = true;
$can_apply_mentor = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]