Skip to content

Commit

Permalink
fix multiple wrapped functions
Browse files Browse the repository at this point in the history
  • Loading branch information
raylu committed Mar 4, 2015
1 parent 5019c9f commit e69e383
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions outlauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
eventlet.monkey_patch()

from collections import defaultdict
from functools import wraps
import operator
import os
import string
Expand Down Expand Up @@ -144,6 +145,7 @@ def logout():
return flask.redirect(flask.url_for('home'))

def admin_route(route): # decorator
@wraps(route)
def wrapped():
if 'user_id' not in session:
return flask.redirect(flask.url_for('login'))
Expand Down

0 comments on commit e69e383

Please sign in to comment.