From ddc68ab4418252aa6619a148b484eb7844bbb6d8 Mon Sep 17 00:00:00 2001 From: Alejandro Casanovas Date: Mon, 16 Sep 2019 13:38:30 +0200 Subject: [PATCH] Fix #306 Bug in share_type comparison on method 'share_with_invite' --- O365/drive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/O365/drive.py b/O365/drive.py index 98adda046896..a3af64991597 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(