Skip to content

Commit c081dd2

Browse files
authored
Merge pull request #3125 from codecrafters-io/arpan/cc-1941-deprecated-courses-should-not-be-visible-on-tracks-page
Filter out deprecated courses for staff users in TrackController.
2 parents 4f65226 + 9ea55ad commit c081dd2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

app/controllers/track.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ export default class TrackController extends Controller {
1010
@service declare authenticator: AuthenticatorService;
1111

1212
get courses(): CourseModel[] {
13-
if (this.authenticator.currentUser && this.authenticator.currentUser.isStaff) {
14-
return this.model.courses;
15-
}
16-
1713
return this.model.courses.rejectBy('releaseStatusIsAlpha').rejectBy('releaseStatusIsDeprecated').rejectBy('visibilityIsPrivate');
1814
}
1915

0 commit comments

Comments
 (0)