613
613
perms.add('edit')
614
614
perms.add('view')
615
elif 'lecturer' in set((e.role for e in user.active_enrolments)):
615
elif u'lecturer' in set((e.role for e in user.active_enrolments)):
618
elif u'tutor' in set((e.role for e in user.active_enrolments)):
616
619
perms.add('edit')
617
620
perms.add('view')