58 params: a dict with params for this View |
58 params: a dict with params for this View |
59 """ |
59 """ |
60 |
60 |
61 rights = access.Checker(params) |
61 rights = access.Checker(params) |
62 rights['create'] = ['checkIsDeveloper'] |
62 rights['create'] = ['checkIsDeveloper'] |
63 rights['edit'] = [('checkHasActiveRoleForScope', student_logic.logic), |
63 rights['edit'] = [('checkIsMyActiveRole', student_logic.logic)] |
64 ('checkIsMyEntity', [student_logic.logic, 'user', True])] |
|
65 rights['delete'] = ['checkIsDeveloper'] |
64 rights['delete'] = ['checkIsDeveloper'] |
66 rights['apply'] = [ |
65 rights['apply'] = [ |
67 'checkIsUser', |
66 'checkIsUser', |
68 ('checkIsActivePeriod', |
67 ('checkIsActivePeriod', |
69 ['student_signup', 'scope_path', program_logic.logic]), |
68 ['student_signup', 'scope_path', program_logic.logic]), |
70 ('checkIsNotParticipatingInProgramInScope', [program_logic.logic]), |
69 ('checkIsNotParticipatingInProgramInScope', [program_logic.logic]), |
71 ] |
70 ] |
72 rights['manage'] = [('checkHasActiveRoleForScope', student_logic.logic), |
71 rights['manage'] = [('checkIsMyActiveRole', student_logic.logic)] |
73 ('checkIsMyEntity', [student_logic.logic, 'user', True])] |
|
74 rights['list_projects'] = [ |
72 rights['list_projects'] = [ |
75 ('checkHasActiveRoleForScope', student_logic.logic), |
73 ('checkHasActiveRoleForScope', student_logic.logic), |
76 ('checkIsAfterEvent', ['accepted_students_announced_deadline', |
74 ('checkIsAfterEvent', ['accepted_students_announced_deadline', |
77 'scope_path', program_logic.logic])] |
75 'scope_path', program_logic.logic])] |
78 |
76 |