Exemple #1
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
     check_event_locked(self, self.event_new)
Exemple #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()
Exemple #3
0
 def _checkProtection(self):
     RHConferenceBaseDisplay._checkProtection(self)
     # Only let managers access the management versions.
     if self.management and not self.event_new.cfp.is_manager(session.user):
         raise Forbidden
Exemple #4
0
 def _checkProtection(self):
     RHConferenceBaseDisplay._checkProtection(self)
     if not self.folder.can_access(session.user):
         raise Forbidden
Exemple #5
0
 def _checkProtection(self):
     if not session.user:
         raise Forbidden
     RHConferenceBaseDisplay._checkProtection(self)
Exemple #6
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()