From 540ca5a5234c019f04299c841ab647276b737281 Mon Sep 17 00:00:00 2001 From: chstaiger Date: Tue, 13 Jun 2023 09:53:21 +0200 Subject: [PATCH] Fix bug in getting acls. --- gui/IrodsDataBundle.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gui/IrodsDataBundle.py b/gui/IrodsDataBundle.py index 3db56a1e..d5fed9d7 100644 --- a/gui/IrodsDataBundle.py +++ b/gui/IrodsDataBundle.py @@ -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):