2 Replies
Hi @florent. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
To hide the 'cancel' resource from the menu, you can use the
meta.hide
property. This property ensures that the resource is not displayed in the Sider component but remains accessible via its URL.
Here's how you can modify your code to hide the 'cancel' resource:
By setting meta.hide
to true
, the 'cancel' resource will be hidden from the Sider component but will still be accessible via the URL /cancel
.
For more information, you can refer to the documentation on hiding items from the Sider component (https://refine.dev/docs/guides-concepts/faq/#how-to-hide-items-from-the-sider-component).
If you need to hide the resource based on user roles, you can integrate the access control provider as mentioned in the Discord support thread (https://discord.com/channels/837692625737613362/1197613916755349554).
This setup ensures that the 'cancel' resource is hidden based on user roles.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@1184365192482652173> kapa.ai is still learning and improving, please let us know how it did by reacting below