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

« back to all changes in this revision

Viewing changes to ivle/webapp/filesystem/browser/__init__.py

Implement an authorization system in the new framework. This breaks the REST
views, but the rest have authorization information now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    appname = 'files'
44
44
    help = 'Filesystem/Browser'
45
45
 
 
46
    def authorize(self, req):
 
47
        return req.user is not None
 
48
 
46
49
    def populate(self, req, ctx):
47
50
        if not hasattr(self, 'path'):
48
51
            # If no path specified, default to the user's home directory