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

« back to all changes in this revision

Viewing changes to ivle/webapp/groups/__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:
36
36
    template = 'template.html'
37
37
    appname = 'groups' # XXX
38
38
 
 
39
    def authorize(self, req):
 
40
        return req.user is not None
 
41
 
39
42
    def populate(self, req, ctx):
40
43
        self.plugin_styles[Plugin] = ['groups.css']
41
44
        self.plugin_scripts[Plugin] = ['groups.js']