Exemple #1
0
 def _check_access(self):
     RHDisplayEventBase._check_access(self)
     # Only let abstract managers access the management versions.
     if self.management and not self.event.can_manage(
             session.user, permission='abstracts'):
         raise Forbidden
     check_event_locked(self, self.event)
Exemple #2
0
 def _check_access(self):
     RHNoteBase._check_access(self)
     if not can_edit_note(self.object, session.user):
         raise Forbidden
     check_event_locked(self, self.event)
Exemple #3
0
 def _check_access(self):
     self._require_user()
     if not self.target.can_manage(session.user):
         raise Forbidden
     elif isinstance(self.target, Event):
         check_event_locked(self, self.target)
Exemple #4
0
 def _check_access(self):
     RHProtected._check_access(self)
     if not can_manage_attachments(self.object, session.user):
         raise Forbidden
     check_event_locked(self, self.event)
Exemple #5
0
 def _check_access(self):
     RHPapersBase._check_access(self)
     if not self._check_paper_protection():
         raise Forbidden
     check_event_locked(self, self.event)
Exemple #6
0
 def _check_access(self):
     RHPapersBase._check_access(self)
     if not self._check_paper_protection():
         raise Forbidden
     check_event_locked(self, self.event)
Exemple #7
0
 def _check_access(self):
     RHPapersBase._check_access(self)
     if not session.user or not self.event.cfp.can_access_judging_area(
             session.user):
         raise Forbidden
     check_event_locked(self, self.event)
Exemple #8
0
 def _check_access(self):
     if not self.contrib.can_manage(session.user):
         raise Forbidden
     check_event_locked(self, self.event)
Exemple #9
0
 def _check_access(self):
     RHPapersBase._check_access(self)
     if not session.user or not self.event.cfp.can_access_judging_area(session.user):
         raise Forbidden
     check_event_locked(self, self.event)
Exemple #10
0
 def _check_access(self):
     self._require_user()
     if not self.target.can_manage(session.user):
         raise Forbidden
     elif isinstance(self.target, Event):
         check_event_locked(self, self.target)
Exemple #11
0
 def _check_access(self):
     if not self.contrib.can_manage(session.user):
         raise Forbidden
     check_event_locked(self, self.event)
Exemple #12
0
 def _check_access(self):
     self._require_user()
     if not self.event.can_manage(session.user, permission=self.PERMISSION):
         raise Forbidden(_('You are not authorized to manage this event.'))
     check_event_locked(self, self.event)
Exemple #13
0
 def _check_access(self):
     RHDisplayEventBase._check_access(self)
     # Only let event managers access the management versions.
     if self.management and not self.event.can_manage(session.user):
         raise Forbidden
     check_event_locked(self, self.event)
Exemple #14
0
 def _check_access(self):
     self._require_user()
     if not self.event.can_manage(session.user, role=self.ROLE):
         raise Forbidden(_('You are not authorized to manage this event.'))
     check_event_locked(self, self.event)