def _check_access(self): RHDisplayEventBase._check_access(self) published = contribution_settings.get(self.event, 'published') if not published: raise NotFound(_("The contributions of this event have not been published yet.")) if not is_menu_entry_enabled(self.MENU_ENTRY_NAME, self.event): self._forbidden_if_not_admin()
def _check_access(self): RHDisplayEventBase._check_access(self) published = contribution_settings.get(self.event, 'published') if not published and not has_contributions_with_user_as_submitter( self.event, session.user): raise NotFound( _('The contributions of this event have not been published yet.' )) if not is_menu_entry_enabled(self.MENU_ENTRY_NAME, self.event): self._forbidden_if_not_admin()
def _check_access(self): RHDisplayEventBase._check_access(self) if not is_menu_entry_enabled(self.MENU_ENTRY_NAME, self.event): self._forbidden_if_not_admin()
def _author_page_active(event): return is_menu_entry_enabled('author_index', event) or is_menu_entry_enabled( 'contributions', event)
def _checkProtection(self): RHConferenceBaseDisplay._checkProtection(self) if not is_menu_entry_enabled(self.MENU_ENTRY_NAME, self.event_new): self._forbidden_if_not_admin()
def _checkProtection(self): RHContributionDisplayBase._checkProtection(self) if (not is_menu_entry_enabled('author_index', self.event_new) and not is_menu_entry_enabled('contributions', self.event_new)): self._forbidden_if_not_admin()
def _author_page_active(event): return is_menu_entry_enabled('author_index', event) or is_menu_entry_enabled('contributions', event)