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

added support for 'include attributes list'. #46

Merged
merged 5 commits into from
Oct 31, 2023

Conversation

gerb-ster
Copy link
Contributor

I've added support for an 'approvalInclude' array in which a user can specify which attributes should go through the 'approval procedure'. If this array is empty, we assume that all attributes need to go trough approval. This is done for backward compatibility.

Most of the changes have been made in the MustBeApproved.php trait, some logic is added there to make sure that included attributes go through approval and the ones not go through the normal process.

I've also added a specific test for this functionality.

@cjmellor cjmellor added the enhancement New feature or request label Oct 26, 2023
@cjmellor
Copy link
Owner

@gerb-ster Could you document this feature, please?

@cjmellor
Copy link
Owner

@gerb-ster I've made some adjustments to suit my own style. Hope that is okay

@gerb-ster
Copy link
Contributor Author

Yeah sure, looking good! I'll add some documentation!

@cjmellor cjmellor merged commit d7a1300 into cjmellor:main Oct 31, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants