From 540c3a8ded9419a295b4345f06d1bdd2d5137721 Mon Sep 17 00:00:00 2001 From: mohammadamer Date: Wed, 14 Jul 2021 19:26:57 +0300 Subject: [PATCH] Update events.ts to disable Edit Recurrence Series button when user has readonly access Disable Edit Recurrence Series button when user has readonly access --- samples/react-calendar/src/controls/Event/event.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/samples/react-calendar/src/controls/Event/event.tsx b/samples/react-calendar/src/controls/Event/event.tsx index 7b8e78d33..a0dfbee6b 100644 --- a/samples/react-calendar/src/controls/Event/event.tsx +++ b/samples/react-calendar/src/controls/Event/event.tsx @@ -906,6 +906,12 @@ export class Event extends React.Component { iconProps={{ iconName: 'RecurringEvent' }} allowDisabledFocus={true} onClick={this.onEditRecurrence} + disabled={ + this.state.userPermissions.hasPermissionAdd || + this.state.userPermissions.hasPermissionEdit + ? false + : true + } > {strings.editRecurrenceSeries}