@refinedev/core@4.22.0
版本发布时间: 2023-06-14 20:22:44
refinedev/refine最新发布版本:@refinedev/supabase@5.9.4(2024-09-03 19:48:37)
Minor Changes
-
#4449
cc84d61bc5c
Thanks @BatuhanW! - feat: allow access control provider to be configured globally.Now
accessControlProvider
acceptsoptions.buttons
parameter to globally configure UI buttons' behaviour.These configuration will be used as a fallback, if no configuration on button prop level is found.
Default values:
options.buttons.enableAccessControl
=>true
options.buttons.hideIfUnauthorized
=>false
const accessControlProvider: IAccessControlContext = { can: async (params: CanParams): Promise<CanReturnType> => { return { can: true }; }, options: { buttons: { enableAccessControl: true, hideIfUnauthorized: false, }, }, };
Patch Changes
-
#4521
a3c8d4f84c7
Thanks @alicanerdurmaz! - fixed:useExport
'sresource
props is not working. With this fix,useExport
will now work withresource
props.useExport({ resource: "users", });