Skip to content

Commit e58783d

Browse files
authored
[v4 API] Prevent admins from obtaining stripe card ephemeral keys (#11881)
## Summary of the problem It was reported by @thedev132 that admins can add other people's cards to Apple Wallet via the mobile app ## Describe your changes Disallow admins from obtaining someone else's stripe card ephemeral key
1 parent 18b4d7f commit e58783d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/policies/stripe_card_policy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def transactions?
4545
end
4646

4747
def ephemeral_keys?
48-
cardholder? || user&.auditor?
48+
cardholder?
4949
end
5050

5151
def enable_cash_withdrawal?

0 commit comments

Comments
 (0)