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

« back to all changes in this revision

Viewing changes to ivle/webapp/security/views.py

Merge from new-dispatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    '''A view to log the current session out.'''
25
25
    template = 'logout.html'
26
26
 
 
27
    def authorize(self, req):
 
28
        return req.user is not None
 
29
 
27
30
    def populate(self, req, ctx):
28
31
        if req.method == "POST":
29
32
            req.logout()