Commit 3fcd66d
committed
Edit Sections: gray out sections the user can't remove
test plan:
1. enroll a user in a course via a SIS import
(or just set a sis_source_id on the enrollment via console)
2. as a teacher who is not an account admin, go to the People page
and click the gear menu and Edit Sections
3. the SIS enrollment should be grayed out, with no X button,
and hover text stating "You cannot remove this enrollment."
4. you should be able to add/remove other non-SIS enrollments
(with and without refreshing the people page)
5. "Remove From Course" should not appear in the gear menu if
any non-deleteable enrollments exist
6. a teacher who *is* an account admin should be able to delete
the SIS enrollment
fixes CNVS-23009
Change-Id: I203286c537f7a2aede8d12b039ee47ec86a36a9b
Reviewed-on: https://gerrit.instructure.com/64771
Tested-by: Jenkins
Reviewed-by: Dan Minkevitch <dan@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: Cosme Salazar <cosme@instructure.com>1 parent 2a39e94 commit 3fcd66d
5 files changed
Lines changed: 50 additions & 27 deletions
File tree
- app
- coffeescripts/views/courses/roster
- stylesheets/base/mixins
- views/jst/courses/roster
- spec/selenium
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
35 | 43 | | |
36 | 44 | | |
37 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | 350 | | |
363 | 351 | | |
364 | | - | |
365 | | - | |
| 352 | + | |
| 353 | + | |
366 | 354 | | |
367 | 355 | | |
368 | 356 | | |
| |||
408 | 396 | | |
409 | 397 | | |
410 | 398 | | |
411 | | - | |
412 | | - | |
413 | 399 | | |
414 | | - | |
415 | | - | |
| 400 | + | |
| 401 | + | |
416 | 402 | | |
417 | 403 | | |
418 | 404 | | |
| |||
421 | 407 | | |
422 | 408 | | |
423 | 409 | | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
424 | 434 | | |
425 | 435 | | |
426 | 436 | | |
| |||
0 commit comments