def _checkProtection(self): RHConferenceBaseDisplay._checkProtection(self) # Only let event managers access the management versions. if self.management and not self.event_new.can_manage(session.user): raise Forbidden check_event_locked(self, self.event_new)
def _checkProtection(self): RHConferenceBaseDisplay._checkProtection(self) if self.agreement.uuid != request.view_args['uuid']: raise Forbidden(_("The URL for this agreement is invalid.")) if self.agreement.user: self._checkSessionUser()
def _checkProtection(self): RHConferenceBaseDisplay._checkProtection(self) # Only let managers access the management versions. if self.management and not self.event_new.cfp.is_manager(session.user): raise Forbidden
def _checkProtection(self): RHConferenceBaseDisplay._checkProtection(self) if not self.folder.can_access(session.user): raise Forbidden
def _checkProtection(self): if not session.user: raise Forbidden RHConferenceBaseDisplay._checkProtection(self)
def _checkProtection(self): RHConferenceBaseDisplay._checkProtection(self) if not is_menu_entry_enabled(self.MENU_ENTRY_NAME, self.event_new): self._forbidden_if_not_admin()