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

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/subject.py

  • Committer: Matt Giuca
  • Date: 2009-12-08 11:47:28 UTC
  • Revision ID: matt.giuca@gmail.com-20091208114728-vdm7a57uf9jhy0g3
Enrolments page: Don't show choices in the list if they are unauthorized. (Note that this is a UI tweak -- roles are already authz-checked.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
 
157
157
        ctx['data'] = data or {}
158
158
        ctx['offering'] = self.context
 
159
        ctx['roles_auth'] = self.context.get_permissions(req.user)
159
160
        ctx['errors'] = errors
160
161
 
161
162
class OfferingProjectsView(XHTMLView):