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

[REF] APIv4 - Enforce contact field permissions via metadata #17168

Merged
merged 1 commit into from
Apr 25, 2020

Conversation

colemanw
Copy link
Member

Overview

Refactors the way field permissions are enforced.
Now that 'permission' metadata has been added to the schema, there's no need for specialized code for that field.
This adds generic code to handle any field with permissions declared.

Before

Special handling.

After

Generic handling. Same result.

…ss override

Now that 'permission' metadata has been added to the schema, there's no need for specialized code for that field.
This adds generic code to handle any field with permissions declared.
@civibot civibot bot added the master label Apr 24, 2020
@civibot
Copy link

civibot bot commented Apr 24, 2020

(Standard links)

@colemanw
Copy link
Member Author

retest this please

@eileenmcnaughton
Copy link
Contributor

@colemanw is this specifically tested? If so I think it's good to merge

@colemanw colemanw merged commit a86a296 into civicrm:master Apr 25, 2020
@colemanw colemanw deleted the contactFieldPerms branch April 25, 2020 13:12
@colemanw
Copy link
Member Author

@eileenmcnaughton yes there's several tests for this.

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.

2 participants