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

Update checkData function to support custom methods #112

Open
jd1378 opened this issue Mar 22, 2024 · 0 comments · May be fixed by #113
Open

Update checkData function to support custom methods #112

jd1378 opened this issue Mar 22, 2024 · 0 comments · May be fixed by #113

Comments

@jd1378
Copy link

jd1378 commented Mar 22, 2024

Update checkData to support custom methods

general idea is to simply change both usePatchData and useUpdateData to a simpler checkRequestData, and use casl's possible-rules-for function to check if rules exist for the current method and run the check if any rule exists.

this helps extend the functionality to include custom methods

@jd1378 jd1378 linked a pull request Mar 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant