app/soc/views/helper/access.py
changeset 2660 e2654d53a643
parent 2610 95949d4c45d9
child 2710 9a93624bd2d4
equal deleted inserted replaced
2659:8df08a3b17db 2660:e2654d53a643
  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