Move financial acl warning from FinancialType BAO to extension.
authoreileen <emcnaughton@wikimedia.org>
Tue, 29 Dec 2020 02:10:48 +0000 (15:10 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 29 Dec 2020 02:15:58 +0000 (15:15 +1300)
commitd646594f36c18bcd0cf465f6ecab947f94c47699
tree3a74f0a37ddde7d550b1479a06c9d577d79a559e
parente4e20a1cba70f381aa1a96587af6445c84791fa4
Move financial acl warning from FinancialType BAO to extension.

It turns out this is not currently triggered by the api as the api passes in the key FinancialType in
ids and it is looking for financialType. Regardless I think this makes sense in the extension
and setting in the session as currently sometimes works makes sense (at least enough to
move rather than remove)
CRM/Financial/BAO/FinancialType.php
ext/financialacls/financialacls.php
ext/financialacls/tests/phpunit/Civi/Financialacls/FinancialTypeTest.php [new file with mode: 0644]
tests/phpunit/api/v3/FinancialTypeTest.php