app/soc/views/models/student_proposal.py
changeset 2041 9a9307b22312
parent 2031 f018461e0f8a
child 2051 cecbef1289a5
equal deleted inserted replaced
2040:f1370e1d0871 2041:9a9307b22312
    82     rights['apply'] = [
    82     rights['apply'] = [
    83         ('checkIsStudent', ['scope_path', ['active']]),
    83         ('checkIsStudent', ['scope_path', ['active']]),
    84         ('checkCanStudentPropose', ['scope_path', True])]
    84         ('checkCanStudentPropose', ['scope_path', True])]
    85     rights['review'] = [('checkRoleAndStatusForStudentProposal',
    85     rights['review'] = [('checkRoleAndStatusForStudentProposal',
    86             [['org_admin', 'mentor', 'host'], 
    86             [['org_admin', 'mentor', 'host'], 
    87             ['active'], ['new', 'pending']])]
    87             ['active'], ['new', 'pending', 'invalid']])]
    88 
    88 
    89     new_params = {}
    89     new_params = {}
    90     new_params['logic'] = soc.logic.models.student_proposal.logic
    90     new_params['logic'] = soc.logic.models.student_proposal.logic
    91     new_params['rights'] = rights
    91     new_params['rights'] = rights
    92     new_params['name'] = "Student Proposal"
    92     new_params['name'] = "Student Proposal"