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

« back to all changes in this revision

Viewing changes to ivle/dispatch/__init__.py

  • Committer: William Grant
  • Date: 2009-08-13 06:26:31 UTC
  • mto: This revision was merged to the branch mainline in revision 1353.
  • Revision ID: grantw@unimelb.edu.au-20090813062631-77szsskhkeriov18
Don't crash in admin check if not logged in.

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
    except PublishingError, e:
158
158
        req.status = 404
159
159
 
160
 
        if req.user.admin:
 
160
        if req.user and req.user.admin:
161
161
            XHTMLErrorView(req, NotFound('Not found: ' +
162
162
                                         str(e.args)), e[0]).render(req)
163
163
        else: