app/soc/views/models/mentor.py
changeset 1248 f318538394d9
parent 1203 38225f2ad3a6
child 1284 92f7a24d8f42
equal deleted inserted replaced
1247:eaf9d539382f 1248:f318538394d9
    48       params: a dict with params for this View
    48       params: a dict with params for this View
    49     """
    49     """
    50 
    50 
    51     rights = access.Checker(params)
    51     rights = access.Checker(params)
    52     rights['create'] = ['checkIsDeveloper']
    52     rights['create'] = ['checkIsDeveloper']
    53     rights['edit'] = [('checkHasActiveRole', soc.logic.models.mentor.logic)]
    53     rights['edit'] = [('checkHasActiveRoleForScope', soc.logic.models.mentor.logic)]
    54     rights['delete'] = ['checkIsDeveloper']
    54     rights['delete'] = ['checkIsDeveloper']
    55     # TODO accessCheck checkIsAdministratorForOrg
    55     # TODO accessCheck checkIsAdministratorForOrg
    56     rights['invite'] = ['checkIsDeveloper']
    56     rights['invite'] = ['checkIsDeveloper']
    57     rights['accept_invite'] = [('checkCanCreateFromRequest', 'mentor')]
    57     rights['accept_invite'] = [('checkCanCreateFromRequest', 'mentor')]
    58     # TODO accessCheck checkIsAdministratorForOrg
    58     # TODO accessCheck checkIsAdministratorForOrg