Skip to content

Commit

Permalink
fix(api-key-deletion): don't allow users to delete other users keys (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Avantol13 authored Mar 14, 2018
1 parent f52b05c commit e5a4d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fence/blueprints/storage_creds.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def delete_keypair(provider, access_key):
api_key = (
session
.query(UserRefreshToken)
.filter_by(jti=jti)
.filter_by(jti=jti, userid=flask.g.user.id)
.first()
)
if not api_key:
Expand Down

0 comments on commit e5a4d72

Please sign in to comment.