Skip to content
Snippets Groups Projects
Commit a5fc75e0 authored by Martin Mareš's avatar Martin Mareš
Browse files

mo.web: Odstraněn relikt staré titulní stránky

parent 7af0a4b9
No related branches found
No related tags found
No related merge requests found
......@@ -135,11 +135,4 @@ def reset():
@app.route('/')
def index():
sess = db.get_session()
roles = []
if g.user:
roles = (sess.query(db.UserRole)
.filter_by(user_id=g.user.user_id)
.options(joinedload(db.UserRole.place))
.all())
return render_template('main.html', roles=roles, roles_by_type=mo.rights.roles_by_type)
return render_template('main.html')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment