diff --git a/src/linkahead/common/models.py b/src/linkahead/common/models.py index ba42b972856205cd73f9e1e654edbb6f0b09efbc..748fbb955c46e1affc0b75c5a4948bc8b835a587 100644 --- a/src/linkahead/common/models.py +++ b/src/linkahead/common/models.py @@ -1450,7 +1450,26 @@ out: List[Entity] self.acl = Entity(name=self.name, id=self.id).retrieve( flags={"ACL": None}).acl - def update_acl(self): + def update_acl(self, **kwargs): + """Update this entities ACL on the server. + + Note + ---- + This overwrites any existing ACL, so you may want to run + ``retrieve_acl`` before updating the ACL in this entity. + + Parameters + ---------- + **kwargs : dict + Keyword arguments that are being passed through to the + ``Entity.update`` method. + + Returns + ------- + e : Entity + This entity after the update of the ACL. + + """ if self.id is None: c = Container().retrieve(query=self.name, sync=False) @@ -1473,7 +1492,7 @@ out: List[Entity] if self.acl is None: raise EntityHasNoAclError("This entity does not have an ACL yet. Please set one first.") e.acl = ACL(self.acl.to_xml()) - e.update() + e.update(**kwargs) return e