Exemplo n.º 1
0
 def _checkProtection(self):
     RHConferenceBaseDisplay._checkProtection(self)
     if not self._conf.getAbstractMgr().isActive(
     ) or not self._conf.hasEnabledSection("cfa"):
         raise MaKaCError(
             _("The Call For Abstracts was disabled by the conference managers"
               ))
Exemplo n.º 2
0
 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()
Exemplo n.º 3
0
 def _checkProtection(self):
     if not session.user:
         raise Forbidden
     RHConferenceBaseDisplay._checkProtection(self)
Exemplo n.º 4
0
 def _checkProtection(self):
     RHConferenceBaseDisplay._checkProtection(self)
     if not self.contrib.can_access(session.user):
         raise Forbidden
Exemplo n.º 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()
Exemplo n.º 6
0
 def _checkProtection(self):
     if self._target.hasEnabledSection("paperReviewing"):
         RHConferenceBaseDisplay._checkProtection(self)
     else:
         raise MaKaCError(_("Paper Reviewing is not active for this conference"))
Exemplo n.º 7
0
 def _checkProtection(self):
     RHConferenceBaseDisplay._checkProtection(self)
     if self.agreement.uuid != request.view_args['uuid']:
         raise AccessError()
     if self.agreement.user:
         self._checkSessionUser()
Exemplo n.º 8
0
 def _checkProtection(self):
     if self._target.hasEnabledSection("paperReviewing"):
         RHConferenceBaseDisplay._checkProtection(self)
     else:
         raise MaKaCError(_("Paper Reviewing is not active for this conference"))
Exemplo n.º 9
0
 def _checkProtection(self):
     RHConferenceBaseDisplay._checkProtection(self)
     if not self.folder.can_access(session.user):
         raise Forbidden
Exemplo n.º 10
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()
Exemplo n.º 11
0
 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
Exemplo n.º 12
0
 def _checkProtection(self):
     if not session.user:
         raise Forbidden
     RHConferenceBaseDisplay._checkProtection(self)
Exemplo n.º 13
0
 def _checkProtection(self):
     RHConferenceBaseDisplay._checkProtection(self)
     if self._regForm.isMandatoryAccount() and self._getUser() == None:
         self._redirect(self._getLoginURL())
         self._doProcess = False
Exemplo n.º 14
0
 def _checkProtection( self ):
     RHConferenceBaseDisplay._checkProtection(self)
     if self._regForm.isMandatoryAccount() and self._getUser() == None:
         self._redirect( self._getLoginURL() )
         self._doProcess = False
Exemplo n.º 15
0
 def _checkProtection( self ):
     RHConferenceBaseDisplay._checkProtection(self)
     if not self._conf.getAbstractMgr().isActive() or not self._conf.hasEnabledSection("cfa"):
         raise MaKaCError( _("The Call For Abstracts was disabled by the conference managers"))
Exemplo n.º 16
0
 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()