示例#1
0
 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)