mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
OAuth2: Fix typo
This commit is contained in:
parent
00f7dbb28d
commit
fa389273ab
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user