def get_all_confirmed(self, raise_exceptions=True): context = aq_inner(self.context) if not _checkPermission("collective.depositbox: View Data", context): if raise_exceptions: raise Unauthorized("Not allowed to get confirmed data.") return [] box = IDepositBox(context) return box.get_all_confirmed()