Commit 2bdb4f2
committed
restrict "recent messages" on old roster user page to instructors
it's leaky and slow and old and hopefully won't be missed
also don't do all the calculations when profiles is enabled
test plan:
* make sure Profiles are not enabled on the root account
* create a course with a discussion topic
* post to the topic as a student
* as a different student, visit the poster's course roster
user page (i.e. click on their name on the course roster)
* the "Recent Messages" should not be shown there
(and possibly leak hidden discussion posts _gasp_)
closes #CNVS-24111
Change-Id: Ifd954f32478796bbcdebe075cea84cb95d03a368
Reviewed-on: https://gerrit.instructure.com/89563
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
Product-Review: Chris Ward <cward@instructure.com>1 parent 0964e95 commit 2bdb4f2
3 files changed
Lines changed: 17 additions & 11 deletions
File tree
- app
- controllers
- views/context
- spec/controllers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | 332 | | |
340 | | - | |
341 | | - | |
342 | 333 | | |
343 | 334 | | |
344 | 335 | | |
| |||
350 | 341 | | |
351 | 342 | | |
352 | 343 | | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
353 | 357 | | |
354 | 358 | | |
355 | 359 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
| 187 | + | |
186 | 188 | | |
187 | 189 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
0 commit comments