Skip to content

Commit

Permalink
Blitz saveDefaults() doesn't use 'omero.user'. Reverts 7c236f6. Fixes…
Browse files Browse the repository at this point in the history
… #8814

Also we use canAnnotate() to test whether we can save settings, since they are annotations on the image.
  • Loading branch information
Will Moore committed May 17, 2012
1 parent a6dc3af commit 9d0ba0a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/tools/OmeroPy/src/omero/gateway/__init__.py
Expand Up @@ -7027,7 +7027,7 @@ def saveDefaults (self):
@return: Boolean
"""

if not self.isEditable():
if not self.canAnnotate():
return False
ns = self._conn.CONFIG.get('IMG_ROPTSNS', None)
if ns:
Expand All @@ -7039,7 +7039,6 @@ def saveDefaults (self):
self.linkAnnotation(ann)
sopts = dict(self._conn.CONFIG['SERVICE_OPTS'] or {})
sopts['omero.group'] = str(self.getDetails().getGroup().getId())
sopts['omero.user'] = str(self.getDetails().getOwner().getId())
self._re.saveCurrentSettings(sopts)
return True

Expand Down

0 comments on commit 9d0ba0a

Please sign in to comment.