Skip to content

Commit

Permalink
Fixing permission strings setActualPermissions()
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Moore committed May 4, 2012
1 parent 0b03752 commit 1eb4e4f
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions components/tools/OmeroWeb/omeroweb/webadmin/controller/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,16 @@ def setActualPermissions(self, p, r=None):
#private
permissions = PermissionsI("rw----")
elif p == 1:
#read-only
permissions = PermissionsI("rwr---")
#collab read-only
if r:
permissions = PermissionsI("rwr---")
else:
# collab or 'read-annotate' (pre 4.4 this was 'readonly')
permissions = PermissionsI("rwra--")
elif p == 2:
#read-annotate (pre 4.4 this was 'readonly')
permissions = PermissionsI("rwra--")
#public (not supported in current UI)
if r:
permissions = PermissionsI("rwrw--")
else:
permissions = PermissionsI("rwr-r-")
return permissions

0 comments on commit 1eb4e4f

Please sign in to comment.