Skip to content

Commit

Permalink
Merge pull request #132 from chStaiger/develop
Browse files Browse the repository at this point in the history
Fix bug in getting acls.
  • Loading branch information
chStaiger authored Jun 13, 2023
2 parents e22f28c + 540ca5a commit d17713f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gui/IrodsDataBundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,9 @@ def disable_buttons(self):
self.extractButton.setEnabled(False)

def _operation_allowed(self, item, user):
acls = self.conn.permission.get_permissions(item)
acls = self.conn.permission.get_permissions(obj=item)
accepted_users = [acl.user_name for acl in acls
if acl.access_name in ['write', 'own']]

if acl.access_name in ['own']]
return user in accepted_users

def create_data_bundle(self):
Expand Down

0 comments on commit d17713f

Please sign in to comment.