rights = self.api.auth.determine_user_rights(caller_hrn, record)
if rights.is_empty():
raise PermissionError(caller_hrn + " has no rights to " + record.get_name())
rights = self.api.auth.determine_user_rights(caller_hrn, record)
if rights.is_empty():
raise PermissionError(caller_hrn + " has no rights to " + record.get_name())