equal
deleted
inserted
replaced
1626 |
1626 |
1627 if role == 'org_admin': |
1627 if role == 'org_admin': |
1628 # check if the current user is a mentor for the program in survey.scope |
1628 # check if the current user is a mentor for the program in survey.scope |
1629 django_args['program'] = survey_scope |
1629 django_args['program'] = survey_scope |
1630 # program is the 'program' attribute for mentors and org_admins |
1630 # program is the 'program' attribute for mentors and org_admins |
1631 return self._checkHasActiveRoleFor(django_args, org_admin_logic, 'program') |
1631 return self._checkHasActiveRoleFor(django_args, org_admin_logic, |
|
1632 'program') |
1632 |
1633 |
1633 if role == 'student': |
1634 if role == 'student': |
1634 # check if the current user is a student for the program in survey.scope |
1635 # check if the current user is a student for the program in survey.scope |
1635 django_args['scope'] = survey_scope |
1636 django_args['scope'] = survey_scope |
1636 # program is the 'scope' attribute for students |
1637 # program is the 'scope' attribute for students |