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

« back to all changes in this revision

Viewing changes to www/apps/download/__init__.py

  • Committer: mattgiuca
  • Date: 2008-01-22 02:16:13 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:262
studpath: Added "authorize" function which checks the logged in user against
the path they are trying to access.
fileservice, server, download: Call authorize before doing anything.
    Note: server does a bit more because in public mode it checks svn status
    instead of calling studpath.authorize (NYI).

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
def handle(req):
41
41
    """Handler for the Download application which serves files for
42
42
    download."""
 
43
    # Make sure the logged in user has permission to see this file
 
44
    studpath.authorize(req)
 
45
 
43
46
    zipmode = False
44
47
    zipbasepath = None
45
48
    zipfilename = None