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

extract two core API permission functions #10016

Merged

Conversation

ErichBSchulz
Copy link
Contributor

This will enable a bit of discoverability for the entity x action
matrix and preps the code base for API4.

This is pretty much a cut and paste job so should be no functional
change.

This will enable a bit of discoverability for the entity x action
matrix.

This is pretty much a cut and paste job so should be no functional
change.
@ErichBSchulz
Copy link
Contributor Author

the kind of discoverability that this refactor enables: https://github.com/ErichBSchulz/api4/blob/autodocs/autodocs/permissions.md

@seamuslee001
Copy link
Contributor

That is pretty cool Erich @colemanw @totten @eileenmcnaughton

@eileenmcnaughton
Copy link
Contributor

@seamuslee001 I kind of skimmed this & thought ' oh yeah' & then thought I saw some conversation between @ErichBSchulz & @colemanw about it that suggested it impacted on some hook - but I might be wrong. Do you think it is ready to merge or could there be 'something' that it affects?

@seamuslee001
Copy link
Contributor

I like the idea but i'll let Coleman have a look at it and see what he thinks

@ErichBSchulz
Copy link
Contributor Author

I was pretty careful not to impact on the hook... I lifted self contained components around either side

@totten
Copy link
Member

totten commented Mar 21, 2017

+1, I think that big-static-datasets should be sequestered from logic.

The test suite passes. My interpretation is that (before and after the change) the $permissions data-structure is built anew during each call to _civicrm_api3_permissions(), so it seems hard to imagine ill side-effects.

@totten totten merged commit ca9db99 into civicrm:master Mar 21, 2017
monishdeb pushed a commit to monishdeb/civicrm-core that referenced this pull request May 2, 2017
…ction_permissions

extract two core API permission functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants