app/soc/modules/ghop/views/models/mentor.py
changeset 2919 cb677410c0f1
parent 2886 52f9b098a6da
child 3032 f3886d1b00a5
equal deleted inserted replaced
2918:d24b80677879 2919:cb677410c0f1
    50       params: a dict with params for this View
    50       params: a dict with params for this View
    51     """
    51     """
    52 
    52 
    53     rights = ghop_access.GHOPChecker(params)
    53     rights = ghop_access.GHOPChecker(params)
    54     rights['create'] = ['checkIsDeveloper']
    54     rights['create'] = ['checkIsDeveloper']
    55     rights['edit'] = [('checkHasActiveRoleForScope', 
    55     rights['edit'] = [('checkIsMyActiveRole', ghop_mentor_logic.logic)]
    56                        ghop_mentor_logic.logic),
       
    57         ('checkIsMyEntity', [ghop_mentor_logic.logic, 'user', True])]
       
    58     rights['delete'] = ['checkIsDeveloper']
    56     rights['delete'] = ['checkIsDeveloper']
    59     rights['invite'] = [('checkHasActiveRoleForScope',
    57     rights['invite'] = [('checkHasActiveRoleForScope',
    60                          ghop_org_admin_logic.logic)]
    58                          ghop_org_admin_logic.logic)]
    61     rights['accept_invite'] = [('checkCanCreateFromRequest', 'ghop/mentor'),
    59     rights['accept_invite'] = [('checkCanCreateFromRequest', 'ghop/mentor'),
    62         ('checkIsNotStudentForProgramOfOrg',
    60         ('checkIsNotStudentForProgramOfOrg',