Skip to content

BasePermissions.to_json() issue?Β #959

@dksdarkness

Description

@dksdarkness

Hi there! πŸ‘‹

First of all, thank you for this great library β€” it's been very helpful!

While migrating roles from one SharePoint site to another, I encountered some unexpected behavior. Upon investigating, I noticed the following method in base_permissions.py:

https://github.com/vgrem/Office365-REST-Python-Client/blob/master/office365/sharepoint/permissions/base_permissions.py:

def to_json(self, json_format=None): return {"Low": str(self.High), "High": str(self.Low)}

Shouldn't it be the other way around?:

{"Low": str(self.Low), "High": str(self.High)}

Best Regards!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions