コード例 #1
0
def index():
    g.user = get_current_user()

    # Admin checking
    if g.user and not g.user.is_admin and not request.path == "/public_key":
        return redirect("/public_key")
    return render_template('index.html')
コード例 #2
0
ファイル: __init__.py プロジェクト: computmaxer/vinz
 def user(self):
     return get_current_user()
コード例 #3
0
def index():
    g.user = get_current_user()
    return render_template('index.html')
コード例 #4
0
ファイル: __init__.py プロジェクト: qinxiaoapp/vinz
 def user(self):
     return get_current_user()