Esempio n. 1
0
def atts():
    if g.user.is_admin():
        atts = Uploads.get_atts()
        return render_template('admin/atts.html', atts=atts)
    else:
        return redirect(url_for('index1'))
Esempio n. 2
0
def atts():
    if g.user.is_admin():
        atts = Uploads.get_atts()
        return render_template('admin/atts.html', atts=atts)
    else:
        return redirect(url_for('index1'))