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

« back to all changes in this revision

Viewing changes to www/apps/fileservice/__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:
91
91
 
92
92
def handle(req):
93
93
    """Handler for the File Services application."""
 
94
    # Make sure the logged in user has permission to see this file
 
95
    # FIXME: Still need to authorize subpaths in actions
 
96
    studpath.authorize(req)
94
97
 
95
98
    # Set request attributes
96
99
    req.write_html_head_foot = False     # No HTML