Skip to content

Commit

Permalink
Merge pull request #1243 from girder/guard-acl-migration
Browse files Browse the repository at this point in the history
Better guards on ACL migration
  • Loading branch information
manthey authored Jul 24, 2023
2 parents 865f100 + f7d40a0 commit 28b835f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

### Bug Fixes
- The nd2 reader throws a different exception with JP2 files ([#1242](../../pull/1242))
- Better guards on ACL migration ([#1243](../../pull/1243))

## 1.23.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ def _migrateACL(self, annotation):

self.copyAccessPolicies(item, annotation, save=False)
self.setUserAccess(annotation, user, AccessType.ADMIN, force=True, save=False)
self.setPublic(annotation, folder.get('public'), save=False)
self.setPublic(annotation, folder.get('public') or False, save=False)

# call the super class save method to avoid messing with elements
super().save(annotation)
Expand Down

0 comments on commit 28b835f

Please sign in to comment.