dev/core#2244 Simplify and consistently apply checking of whether financial acls...
authoreileen <emcnaughton@wikimedia.org>
Fri, 11 Dec 2020 02:26:21 +0000 (15:26 +1300)
committereileen <emcnaughton@wikimedia.org>
Fri, 11 Dec 2020 02:40:41 +0000 (15:40 +1300)
commitc93aa264ad96675ccaf69250c7e8ddc4b173d9f2
tree48f64bfecc305b4f5d5100c7079a60b9bea341bb
parentbb3638279b66691b27fd5eec31a33a6af5dd71cf
dev/core#2244 Simplify and consistently apply checking of whether financial acls are enabled

Per https://lab.civicrm.org/dev/core/-/issues/2244 the move of some handling to this function
did not consistently include an early return when the setting is toggled off.

Eventually there will be no setting - just 'is this extension enabled or not' but
in the transition we need this. The new version is easier to copy and paste :-)
and uses a function in the extension. The function in the main code base is
mostly a lot of code to handle the way the setting used to be stored & it
could just check the setting too now
ext/financialacls/financialacls.php