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(): ...@@ -135,11 +135,4 @@ def reset():
@app.route('/') @app.route('/')
def index(): def index():
sess = db.get_session() return render_template('main.html')
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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment