restrict shell

master
James Sigurðarson 2016-08-12 16:42:26 +01:00
parent 932779b39e
commit fedf534598
1 changed files with 4 additions and 0 deletions

View File

@ -1,12 +1,16 @@
from flask import Blueprint, g, render_template
from data import ssh
import decorators
shell = Blueprint("shell", __name__, template_folder="../templates/shell")
@shell.route('/shell/')
@decorators.must_be_allowed_to("access shell")
@decorators.competition_running_required
@decorators.confirmed_email_required
def index():
account = ssh.get_team_account(g.team)
return render_template("shell.html", account=account)