app/soc/views/models/mentor.py
changeset 1526 5c31184594a5
parent 1433 4724e3b99702
child 1583 1e4c785f1adf
equal deleted inserted replaced
1525:fe906cdbf0e9 1526:5c31184594a5
    53 
    53 
    54     rights = access.Checker(params)
    54     rights = access.Checker(params)
    55     rights['create'] = ['checkIsDeveloper']
    55     rights['create'] = ['checkIsDeveloper']
    56     rights['edit'] = [('checkHasActiveRoleForScope', soc.logic.models.mentor.logic)]
    56     rights['edit'] = [('checkHasActiveRoleForScope', soc.logic.models.mentor.logic)]
    57     rights['delete'] = ['checkIsDeveloper']
    57     rights['delete'] = ['checkIsDeveloper']
    58     rights['invite'] = [('checkHasActiveRoleForScope', 
    58     rights['invite'] = [('checkHasActiveRoleForScope',
    59                          soc.logic.models.org_admin.logic)]
    59                          soc.logic.models.org_admin.logic)]
    60     rights['accept_invite'] = [('checkCanCreateFromRequest', 'mentor'),
    60     rights['accept_invite'] = [('checkCanCreateFromRequest', 'mentor'),
    61         'checkIsNotStudentForProgramOfOrg']
    61         'checkIsNotStudentForProgramOfOrg']
    62     rights['request'] = ['checkIsNotStudentForProgramOfOrg',
    62     rights['request'] = ['checkIsNotStudentForProgramOfOrg',
    63         ('checkCanMakeRequestToGroup', org_logic)]
    63         ('checkCanMakeRequestToGroup', org_logic)]