Beispiel #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')
Beispiel #2
0
 def user(self):
     return get_current_user()
Beispiel #3
0
def index():
    g.user = get_current_user()
    return render_template('index.html')
Beispiel #4
0
 def user(self):
     return get_current_user()