minsk-hackerspace / hackerspace.by

Website of Minsk Hackerspace (Ruby on Rails)
https://hackerspace.by/
11 stars 20 forks source link

Fix broken bepaid notifications handling #373

Closed jekhor closed 5 years ago

jekhor commented 5 years ago

After introducing cancancan ability management, bepaid notifications handling is broken:

I, [2019-03-04T10:44:05.050546 #8112] INFO -- : Started POST "/admin/erip_transactions/bepaid_notify" for 54.246.193.48 at 2019-03-04 1 0:44:05 +0300 I, [2019-03-04T10:44:05.053151 #8112] INFO -- : Processing by Admin::EripTransactionsController#bepaid_notify as / I, [2019-03-04T10:44:05.053486 #8112] INFO -- : Parameters: E, [2019-03-04T10:44:06.604516 #8112] ERROR -- : Cannot bepaid_notify on erip_transaction I, [2019-03-04T10:44:06.605150 #8112] INFO -- : Redirected to https://hackerspace.by/users/sign_in

Add test for this ability and add abilities for :erip_transaction, not for EripTransaction (to be clarified in future).