~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:35:25 UTC
  • Revision ID: matt.giuca@gmail.com-20091208113525-ua43s35y7n0fsh2i
database: More granular permissions on offerings: Added 'enrol' permission.
    Currently same level as 'edit' (tutor), but subject to change.
Enrolment page: Permission required now 'enrol', not 'edit'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
    """A form to enrol a user in an offering."""
117
117
    template = 'templates/enrol.html'
118
118
    tab = 'subjects'
119
 
    permission = 'edit'
 
119
    permission = 'enrol'
120
120
 
121
121
    def filter(self, stream, ctx):
122
122
        return stream | HTMLFormFiller(data=ctx['data'])