Update events.ts to disable Edit Recurrence Series button when user has readonly access

Disable Edit Recurrence Series button when user has readonly access
This commit is contained in:
mohammadamer 2021-07-14 19:26:57 +03:00 committed by GitHub
parent 5d146e40b0
commit 540c3a8ded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -906,6 +906,12 @@ export class Event extends React.Component<IEventProps, IEventState> {
iconProps={{ iconName: 'RecurringEvent' }}
allowDisabledFocus={true}
onClick={this.onEditRecurrence}
disabled={
this.state.userPermissions.hasPermissionAdd ||
this.state.userPermissions.hasPermissionEdit
? false
: true
}
>
{strings.editRecurrenceSeries}
</DefaultButton>