Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug in share_type comparison on method 'share_with_invite'
  • Loading branch information
Alejandro Casanovas committed Sep 16, 2019
1 parent 0546c9d commit ddc68ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion O365/drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit ddc68ab

Please sign in to comment.