Пример #1
0
    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()
Пример #2
0
    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()
Пример #3
0
 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()
Пример #4
0
def _author_page_active(event):
    return is_menu_entry_enabled('author_index',
                                 event) or is_menu_entry_enabled(
                                     'contributions', event)
Пример #5
0
 def _checkProtection(self):
     RHConferenceBaseDisplay._checkProtection(self)
     if not is_menu_entry_enabled(self.MENU_ENTRY_NAME, self.event_new):
         self._forbidden_if_not_admin()
Пример #6
0
 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()
Пример #7
0
 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()
Пример #8
0
def _author_page_active(event):
    return is_menu_entry_enabled('author_index', event) or is_menu_entry_enabled('contributions', event)
Пример #9
0
 def _checkProtection(self):
     RHConferenceBaseDisplay._checkProtection(self)
     if not is_menu_entry_enabled(self.MENU_ENTRY_NAME, self.event_new):
         self._forbidden_if_not_admin()
Пример #10
0
 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()