def _check_access(self): RHAbstractBase._check_access(self) if self.abstract.state != AbstractState.invited: raise Forbidden
def _check_access(self): RHAbstractBase._check_access(self) if not self.comment.can_edit(session.user): raise Forbidden