Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev/core#2244 Simplify and consistently apply checking of whether financial acls are enabled #19173

Merged
merged 1 commit into from
Dec 11, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Dec 11, 2020

Overview

Financial acls being applied to options (& other places) when the setting is not TRUE

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.

Before

See https://lab.civicrm.org/dev/core/-/issues/2244 for steps to replicate - but also affects other functions

After

Each hook function checks the setting & returns straight away if not TRUE

Technical Details

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

Comments

Thanks @alifrumin

…ancial 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
@civibot
Copy link

civibot bot commented Dec 11, 2020

(Standard links)

@civibot civibot bot added the 5.33 label Dec 11, 2020
@eileenmcnaughton eileenmcnaughton changed the title dev/core#2244 Simplify and consistently apply checking of whether fin… dev/core#2244 Simplify and consistently apply checking of whether financial acls are enabled Dec 11, 2020
@eileenmcnaughton eileenmcnaughton merged commit cc1b08a into civicrm:5.33 Dec 11, 2020
@eileenmcnaughton eileenmcnaughton deleted the 533 branch December 11, 2020 05:13
@alifrumin
Copy link
Contributor

Thank you @eileenmcnaughton !!! how speedy.

@eileenmcnaughton
Copy link
Contributor Author

@alifrumin thanks for finding an embarrassing bug!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants