From fa389273abe24198356bad406101b6d14d74f34f Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 31 Oct 2023 20:14:21 +0000 Subject: [PATCH] OAuth2: Fix typo --- app/blueprints/oauth/__init__.py | 2 +- app/blueprints/users/profile.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/blueprints/oauth/__init__.py b/app/blueprints/oauth/__init__.py index b115b581..8d6f21d4 100644 --- a/app/blueprints/oauth/__init__.py +++ b/app/blueprints/oauth/__init__.py @@ -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) diff --git a/app/blueprints/users/profile.py b/app/blueprints/users/profile.py index 6e1cdc05..4dd0e764 100644 --- a/app/blueprints/users/profile.py +++ b/app/blueprints/users/profile.py @@ -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: