コード例 #1
0
ファイル: display.py プロジェクト: vireshbackup/indico
 def _checkProtection(self):
     cfa = self.event_new.cfa
     if session.user and not cfa.is_open and not cfa.can_submit_abstracts(
             session.user):
         raise NoReportError(_(
             'The Call for Abstracts is closed. Please contact the event organizer for further '
             'assistance.'),
                             http_status_code=403)
     elif not session.user or not cfa.can_submit_abstracts(session.user):
         raise Forbidden
     RHAbstractsBase._checkProtection(self)
コード例 #2
0
ファイル: display.py プロジェクト: nyimbi/indico
 def _checkProtection(self):
     if not session.user or not self.event_new.cfa.can_submit_abstracts(
             session.user):
         raise Forbidden
     RHAbstractsBase._checkProtection(self)
コード例 #3
0
ファイル: display.py プロジェクト: nyimbi/indico
 def _checkProtection(self):
     if not session.user:
         raise Forbidden
     RHAbstractsBase._checkProtection(self)
コード例 #4
0
ファイル: display.py プロジェクト: OmeGak/indico
 def _checkProtection(self):
     if not session.user or not self.event_new.cfa.can_submit_abstracts(session.user):
         raise Forbidden
     RHAbstractsBase._checkProtection(self)
コード例 #5
0
ファイル: display.py プロジェクト: OmeGak/indico
 def _checkProtection(self):
     if not session.user:
         raise Forbidden
     RHAbstractsBase._checkProtection(self)