diff --git a/O365/drive.py b/O365/drive.py index 98adda0468960..a3af649915970 100644 --- a/O365/drive.py +++ b/O365/drive.py @@ -870,7 +870,7 @@ def share_with_invite(self, recipients, require_sign_in=True, } if share_type in {'view', 'read'}: data['roles'] = ['read'] - elif share_type == {'edit', 'write'}: + elif share_type in {'edit', 'write'}: data['roles'] = ['write'] else: raise ValueError(