Skip to content

Commit

Permalink
Merge branch 'staging/bugfix' into maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
foosel committed Apr 29, 2024
2 parents 709aef4 + fd0023a commit 6753807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/octoprint/plugins/appkeys/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def on_api_command(self, command, data):

if not Permissions.PLUGIN_APPKEYS_ADMIN.can():
user_for_key = self._user_for_api_key(api_key)
if user_for_key is None or user_for_key.user_id != user_id:
if user_for_key is None or user_for_key.get_id() != user_id:
return flask.abort(403)

ensure_credentials_checked_recently()
Expand Down

0 comments on commit 6753807

Please sign in to comment.