Index: trunk/extensions/EducationProgram/EducationProgram.i18n.php |
— | — | @@ -64,6 +64,9 @@ |
65 | 65 | 'right-ep-token' => 'See Education Program enrollment tokens', |
66 | 66 | 'right-ep-remstudent' => 'Remove students from terms', |
67 | 67 | 'right-ep-enroll' => 'Enroll in Education Program terms', |
| 68 | + 'right-ep-online' => 'Add or remove online ambassadors to terms', |
| 69 | + 'right-ep-campus' => 'Add or remove campus ambassadors to terms', |
| 70 | + 'right-ep-instructor' => 'Add or remove instructors to courses', |
68 | 71 | |
69 | 72 | // Actions |
70 | 73 | 'action-ep-org' => 'manage institutions', |
— | — | @@ -72,6 +75,9 @@ |
73 | 76 | 'action-ep-token' => 'see enrollment tokens', |
74 | 77 | 'action-ep-remstudent' => 'remove students from terms', |
75 | 78 | 'action-ep-enroll' => 'enroll in terms', |
| 79 | + 'action-ep-online' => 'add or remove online ambassadors to terms', |
| 80 | + 'action-ep-campus' => 'add or remove campus ambassadors to terms', |
| 81 | + 'action-ep-instructor' => 'add or remove instructors to courses', |
76 | 82 | |
77 | 83 | // Groups |
78 | 84 | 'group-epadmin' => 'Education program admins', |
Index: trunk/extensions/EducationProgram/EducationProgram.php |
— | — | @@ -166,13 +166,19 @@ |
167 | 167 | $wgAvailableRights[] = 'ep-token'; // See enrollment tokens |
168 | 168 | $wgAvailableRights[] = 'ep-enroll'; // Enroll as a student |
169 | 169 | $wgAvailableRights[] = 'ep-remstudent'; // Dissasociate students from terms |
| 170 | +$wgAvailableRights[] = 'ep-online'; // Add or remove online ambassadors from terms |
| 171 | +$wgAvailableRights[] = 'ep-campus'; // Add or remove campus ambassadors from terms |
| 172 | +$wgAvailableRights[] = 'ep-instructor'; // Add or remove instructors from courses |
170 | 173 | |
| 174 | +$wgGroupPermissions['*']['ep-enroll'] = true; |
171 | 175 | $wgGroupPermissions['*']['ep-org'] = false; |
172 | 176 | $wgGroupPermissions['*']['ep-course'] = false; |
173 | 177 | $wgGroupPermissions['*']['ep-term'] = false; |
174 | 178 | $wgGroupPermissions['*']['ep-token'] = false; |
175 | 179 | $wgGroupPermissions['*']['ep-remstudent'] = false; |
176 | | -$wgGroupPermissions['*']['ep-enroll'] = true; |
| 180 | +$wgGroupPermissions['*']['ep-online'] = false; |
| 181 | +$wgGroupPermissions['*']['ep-campus'] = false; |
| 182 | +$wgGroupPermissions['*']['ep-instructor'] = false; |
177 | 183 | |
178 | 184 | $wgGroupPermissions['epstaff']['ep-org'] = true; |
179 | 185 | $wgGroupPermissions['epstaff']['ep-course'] = true; |
— | — | @@ -180,6 +186,9 @@ |
181 | 187 | $wgGroupPermissions['epstaff']['ep-token'] = true; |
182 | 188 | $wgGroupPermissions['epstaff']['ep-enroll'] = true; |
183 | 189 | $wgGroupPermissions['epstaff']['ep-remstudent'] = true; |
| 190 | +$wgGroupPermissions['epstaff']['ep-online'] = true; |
| 191 | +$wgGroupPermissions['epstaff']['ep-campus'] = true; |
| 192 | +$wgGroupPermissions['epstaff']['ep-instructor'] = true; |
184 | 193 | |
185 | 194 | $wgGroupPermissions['epadmin']['ep-org'] = true; |
186 | 195 | $wgGroupPermissions['epadmin']['ep-course'] = true; |
— | — | @@ -187,6 +196,9 @@ |
188 | 197 | $wgGroupPermissions['epadmin']['ep-token'] = true; |
189 | 198 | $wgGroupPermissions['epadmin']['ep-enroll'] = true; |
190 | 199 | $wgGroupPermissions['epadmin']['ep-remstudent'] = true; |
| 200 | +$wgGroupPermissions['epadmin']['ep-online'] = true; |
| 201 | +$wgGroupPermissions['epadmin']['ep-campus'] = true; |
| 202 | +$wgGroupPermissions['epadmin']['ep-instructor'] = true; |
191 | 203 | |
192 | 204 | $wgGroupPermissions['eponlineamb']['ep-org'] = true; |
193 | 205 | $wgGroupPermissions['eponlineamb']['ep-course'] = true; |
— | — | @@ -203,6 +215,8 @@ |
204 | 216 | $wgGroupPermissions['epinstructor']['ep-term'] = true; |
205 | 217 | $wgGroupPermissions['epinstructor']['ep-token'] = true; |
206 | 218 | $wgGroupPermissions['epinstructor']['ep-remstudent'] = true; |
| 219 | +$wgGroupPermissions['epinstructor']['ep-online'] = true; |
| 220 | +$wgGroupPermissions['epinstructor']['ep-campus'] = true; |
207 | 221 | |
208 | 222 | $wgGroupPermissions['epstaff']['userrights'] = false; |
209 | 223 | $wgAddGroups['epstaff'] = array( 'epstaff', 'epadmin', 'eponlineamb', 'epcampamb', 'epinstructor' ); |