def _checkProtection(self): RHCategModifBase._checkProtection(self) # This is already covered by CategModifBase, but if we ever add more # checks to can_manage_attachments we are on the safe side... if not can_manage_attachments(self.object, session.user): raise Forbidden