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

« back to all changes in this revision

Viewing changes to ivle/webapp/__init__.py

  • Committer: William Grant
  • Date: 2009-12-02 02:20:57 UTC
  • mto: This revision was merged to the branch mainline in revision 1353.
  • Revision ID: grantw@unimelb.edu.au-20091202022057-m3w3rzrzp47y89to
Refuse to traverse through an object to which the user has no permissions. This stops information leakage in breadcrumbs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
class ApplicationRoot(object):
2
2
    """Root of the IVLE path namespace."""
3
 
    def __init__(self, config, store):
 
3
    def __init__(self, config, store, user):
4
4
        self.config = config
5
5
        self.store = store
 
6
        self.user = user