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

« back to all changes in this revision

Viewing changes to ivle/webapp/console/__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:
15
15
    # Don't load the console overlay when we already have a console.
16
16
    overlay_blacklist = [ConsoleOverlay]
17
17
 
 
18
    def authorize(self, req):
 
19
        return req.user is not None
 
20
 
18
21
    def populate(self, req, ctx):
19
22
        ctx['windowpane'] = False
20
23
        ctx['start_body_attrs'] = {}