Skip to content

Commit 9ea55ad

Browse files
committed
Remove staff check from courses method in TrackController for course filtering.
1 parent 3530fd5 commit 9ea55ad

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.rejectBy('releaseStatusIsDeprecated');
15-
}
16-
1713
return this.model.courses.rejectBy('releaseStatusIsAlpha').rejectBy('releaseStatusIsDeprecated').rejectBy('visibilityIsPrivate');
1814
}
1915

0 commit comments

Comments
 (0)