diff --git a/app/jsx/context_cards/GraphQLStudentContextTray.js b/app/jsx/context_cards/GraphQLStudentContextTray.js
index 55d53aa35fe..05d53208f8d 100644
--- a/app/jsx/context_cards/GraphQLStudentContextTray.js
+++ b/app/jsx/context_cards/GraphQLStudentContextTray.js
@@ -95,13 +95,24 @@ const SCC_QUERY = gql`
}
`
+// for admins who can view the roster but not the course list
+function placeholderCourse(courseId) {
+ return {
+ _id: courseId,
+ permissions: {},
+ submissionsConnection: {
+ edges: []
+ }
+ }
+}
+
export default props => {
return (