Skip to content

fix(core): pass meta to useCan params#6826

Merged
alicanerdurmaz merged 5 commits into
refinedev:release/june-2025from
devarsh-mavani-19:devarsh/6802
Jul 5, 2025
Merged

fix(core): pass meta to useCan params#6826
alicanerdurmaz merged 5 commits into
refinedev:release/june-2025from
devarsh-mavani-19:devarsh/6802

Conversation

@devarsh-mavani-19
Copy link
Copy Markdown
Contributor

@devarsh-mavani-19 devarsh-mavani-19 commented Jun 2, 2025

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features

What is the current behavior?

Currently it does not pass meta params to access control provider. Which limits the data that we may want to pass through useCan hook.

What is the new behavior?

Now it passes meta params through useCan hook

fixes (issue)
#6802

Notes for reviewers

@devarsh-mavani-19 devarsh-mavani-19 requested a review from a team as a code owner June 2, 2025 19:10
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 2, 2025

🦋 Changeset detected

Latest commit: 658977e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@refinedev/core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 2, 2025

Deploy Preview for refine-doc-live-previews ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 658977e
🔍 Latest deploy log https://app.netlify.com/projects/refine-doc-live-previews/deploys/6867dfa56bd82a00087f2448
😎 Deploy Preview https://deploy-preview-6826--refine-doc-live-previews.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@alicanerdurmaz alicanerdurmaz changed the base branch from main to next June 2, 2025 19:30
@alicanerdurmaz alicanerdurmaz changed the base branch from next to main June 2, 2025 19:31
@alicanerdurmaz
Copy link
Copy Markdown
Collaborator

Hi @devarsh-mavani-19, thanks for the PR!

Do you have time to add some tests?

You can see the button tests here.
We can pass meta to the buttons and check if params are passed or not.

@alicanerdurmaz alicanerdurmaz added this to the May 2025 Release milestone Jun 4, 2025
Comment thread packages/core/src/hooks/button/button-can-access/index.tsx Outdated
Comment thread .changeset/great-birds-nail.md Outdated
@BatuhanW BatuhanW removed this from the May 2025 Release milestone Jun 23, 2025
@alicanerdurmaz alicanerdurmaz changed the base branch from main to release/june-2025 July 5, 2025 13:07
@alicanerdurmaz alicanerdurmaz merged commit 9dca95e into refinedev:release/june-2025 Jul 5, 2025
15 checks passed
@alicanerdurmaz alicanerdurmaz added this to the June Release milestone Aug 6, 2025
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 this pull request may close these issues.

[BUG] ShowButton does not pass meta params to useButtonCanAccess refine/inAntD

3 participants