Fix setting release notes in release edit
This commit is contained in:
@@ -53,7 +53,7 @@ class SwitchUserForm(FlaskForm):
|
||||
def switch_user():
|
||||
form = SwitchUserForm(formdata=request.form)
|
||||
if form.validate_on_submit():
|
||||
user = User.query.filter_by(username=form["username"].data).first()
|
||||
user = User.query.filter_by(username=form.username.data).first()
|
||||
if user is None:
|
||||
flash("Unable to find user", "danger")
|
||||
elif login_user(user):
|
||||
|
||||
Reference in New Issue
Block a user