Show guides when users are a teacher OR own a classroom

This commit is contained in:
Scott Erickson 2016-04-08 10:14:35 -07:00
parent c20ed58f9f
commit cabca6366f

View file

@ -72,7 +72,7 @@ mixin course-info(course)
if course.get('concepts').indexOf(concept) !== course.get('concepts').length - 1 if course.get('concepts').indexOf(concept) !== course.get('concepts').length - 1
span.spr , span.spr ,
if me.isTeacher() && view.ownedClassrooms.size() if me.isTeacher() || view.ownedClassrooms.size()
if view.guideLinks[course.id] if view.guideLinks[course.id]
//- a.btn.btn-primary(href=view.guideLinks[course.id] class=(me.isAnonymous() ? 'disabled' : '')) //- a.btn.btn-primary(href=view.guideLinks[course.id] class=(me.isAnonymous() ? 'disabled' : ''))
//- span(data-i18n="courses.print_guide") //- span(data-i18n="courses.print_guide")