Skip to content

Commit 4238a01

Browse files
author
Pietro
committed
fix(wallet): access to wallets#show granted on common wallet
1 parent 0ab8b75 commit 4238a01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/wallets_controller.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,6 @@ def can_access_short_view?
108108
# forces a redirect to the safer short_view if it is possible
109109
# avoids to disclose the actual path of the wallet for QR enabled currencies
110110
def redirect_to_short_view
111-
redirect_to wallet_short_path(@wallet.hash_id) if current_ability.can?(:short_view, @wallet)
111+
redirect_to wallet_short_path(@wallet.hash_id) if current_ability.can?(:short_view, @wallet) && !@wallet.is_common_wallet?
112112
end
113113
end

0 commit comments

Comments
 (0)