Skip to content

Commit

Permalink
Correct code block formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanFauble committed Dec 29, 2023
1 parent 2371e00 commit 9bfe722
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions synapseclient/models/permission.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,11 @@ def access_types(self) -> List[str]:
Special Case: a permission that has can_view set to True and nothing else set on an entity created by you.
CHANGE_SETTINGS is bound to ownerId. Since the entity is created by you,
the CHANGE_SETTINGS will always be True.
read_permission = Permissions()
read_permission.can_view = True
print(read_permission.access_types)
# Prints: ['READ','CHANGE_SETTINGS']
read_permission = Permissions()
read_permission.can_view = True
print(read_permission.access_types)
# Prints: ['READ','CHANGE_SETTINGS']
A permission that has can_view and can_edit set to True and nothing else set
Expand Down

0 comments on commit 9bfe722

Please sign in to comment.