~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/database.py

Merged my changes with those of Will's up-to-date branch.

I will now branch these changes to allow for a merge proposal to go
ahead without me poisoning it with new code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
612
612
            if user.admin:
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)):
 
616
                perms.add('edit')
 
617
                perms.add('view')
 
618
            elif u'tutor' in set((e.role for e in user.active_enrolments)):
616
619
                perms.add('edit')
617
620
                perms.add('view')
618
621