OAuth2: Fix typo

This commit is contained in:
rubenwardy 2023-10-31 20:14:21 +00:00
parent 00f7dbb28d
commit fa389273ab
2 changed files with 2 additions and 2 deletions

@ -192,7 +192,7 @@ def create_edit_client(username, id_=None):
client.owner = user
client.id = random_string(24)
client.secret = random_string(32)
client.approved = current_user.rank.atLeast(UserRank.EDITOR)
client.approved = current_user.rank.at_least(UserRank.EDITOR)
form.populate_obj(client)

@ -244,7 +244,7 @@ def user_check_forums(username):
if user is None:
abort(404)
if current_user != user and not current_user.rank.atLeast(UserRank.MODERATOR):
if current_user != user and not current_user.rank.at_least(UserRank.MODERATOR):
abort(403)
if user.forums_username is None: