accessControlProvider behaviour

Hi friends! i've got problem with accessControlProvider in our application we have role mode that fetching from backend and i need to use it but than i put request for profile in 'can' method - it makes many requests for profile( maybe i do something wrong?
No description
fascinating-indigo418d ago
Hey, I am refine support bot :wave:. I am here to help you with your question. I searched for the answer to your question in the refine documentation and could not find an answer. Please wait for someone from the refine core team or the community to try to help you. 👊
harsh-harlequin418d ago
and after this implementation i see this in network)
No description
noble-gold417d ago Hello @amounguluz It's an expected behaviour, we are checking for each resource.
Access Control Provider | refine
Access control is a broad topic where there are lots of advanced solutions that provide different set of features. refine is deliberately agnostic for its own API to be able to integrate different methods (RBAC, ABAC, ACL, etc.) and different libraries (Casbin, CASL, Cerbos, AccessControl.js). can method would be the entry point for those soluti...
harsh-harlequin417d ago
yes, but i made this screenshot on list page and than it fetched data and render list and this method (can) was executing on any row render on network you can see how many requests after that ...
Omer417d ago
Hey @amounguluz , This is an expected behavior. The '<DeleteButton>' component calls the 'can' method of the accessControlProvider during rendering. You can find more details here: If you want to prevent this, you can refer to this document:"
More Posts
disable getOne or bypass getOneHello Refine team, I'm working on EditableTable, I understand when I click each row of table, the acWhy CheckAuth triggers twice?Hello everyone, I am trying to implement JWT authentication with expiration checking and refreshingGoogle Auth: Email/ password combo instead of just Google login?Hi everyone, I've got Google Auth set up no problem and it's working as expected. While this is greaHey guys good day quick question doesHey guys good day, quick question, does the Select component of Refine Mantine supports pagination ?Hello I want to follow the rules hereHello. I want to follow the rules here, but I'm not sure if I can post a question in general... I'm How to hide buttons globally based on access control.I want to hide the action buttons instead of disabling it. I knew that we can do that on button leveForm imagesI have a problem with uploading images in the form. I'm using react-hook-forms and Zod validation HoAuthentication with StrapiI am not able to use Strapi authentication together with refine. My client connects normally with thAccess control using cerbos throws TypeError: cyclic object valueI am using cerbos for access control and it only checks for dashboard resource all other routes are Theme does not apply to typography.Hi, i created a simple refine app with react, remix and material ui using the following command: `npHow to navigate to a list page with filter parameters?I want to navigate to a list page using a filter parameters from where I came on the edit page. AfteEdit page doesn't fetch and populate the form fields.I have multi-level menu and from that menu I have and list page and edit action on list of item. But