equal
deleted
inserted
replaced
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 |