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

« back to all changes in this revision

Viewing changes to ivle/webapp/groups/__init__.py

  • Committer: William Grant
  • Date: 2009-02-26 02:03:51 UTC
  • Revision ID: grantw@unimelb.edu.au-20090226020351-61b5pi1qgejl2ufr
Remove the user portion of the group view.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        self.plugin_styles[Plugin] = ['groups.css']
43
43
        self.plugin_scripts[Plugin] = ['groups.js']
44
44
 
45
 
        # Show a group panel per enrolment
46
 
        ctx['get_user_groups'] = req.user.get_groups
47
 
        ctx['enrolments'] = req.user.active_enrolments
48
 
 
49
45
        roles = set((e.role for e in req.user.active_enrolments))
50
46
        ctx['manage_subjects'] = req.store.find(Subject) if \
51
47
              req.user.admin or 'tutor' in roles or 'lecturer' in roles else []