Skip to content
Snippets Groups Projects
Commit 172cf027 authored by Swen Vermeul's avatar Swen Vermeul
Browse files

bugfix role assignments

parent 006bf04e
No related branches found
No related tags found
No related merge requests found
...@@ -31,9 +31,10 @@ class RoleAssignment(OpenBisObject): ...@@ -31,9 +31,10 @@ class RoleAssignment(OpenBisObject):
return "{}".format(self.get('role')) return "{}".format(self.get('role'))
def delete(self, reason='no reason specified'): def delete(self, reason='no reason specified'):
self.openbis.delete_entity( self.openbis.delete_openbis_entity(
entity='RoleAssignment', id=self.id, entity='roleAssignment',
reason=reason, id_name='techId' objectId=self._id,
) reason= reason
)
if VERBOSE: if VERBOSE:
print("RoleAssignment role={}, roleLevel={} successfully deleted.".format(self.role, self.roleLevel)) print("RoleAssignment role={}, roleLevel={} successfully deleted.".format(self.role, self.roleLevel))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment