mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix typing issue causing IDs to not be ==
This commit is contained in:
parent
522223a36f
commit
539c07be9d
@ -217,7 +217,7 @@ class ApiUsersUserKeyHandler(BaseApiHandler):
|
||||
)
|
||||
|
||||
if (
|
||||
target_key.user_id != auth_data[4]["user_id"]
|
||||
str(target_key.user_id) != str(auth_data[4]["user_id"])
|
||||
and not auth_data[4]["superuser"]
|
||||
):
|
||||
return self.finish_json(
|
||||
|
Loading…
Reference in New Issue
Block a user