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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-02-24 13:29:44 UTC
  • Revision ID: grantw@unimelb.edu.au-20090224132944-lm29zd1li1rjg77p
Privileges (apart from admin) are now offering-local, not global.

Offering privileges are granted by Enrolment.role, and global admin
by User.admin. ivle.caps is dead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
    if user.email != None:
62
62
        email = quote(user.email)
63
63
 
64
 
    role = quote(str(user.role))
 
64
    role = 'admin' if user.admin else 'student' # XXX
65
65
 
66
66
    hashtext = login + nick + email + role + secret
67
67
    hash = hashlib.md5(hashtext).hexdigest()