コード例 #1
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)
コード例 #2
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)
コード例 #3
0
 def _check_access(self):
     RHPapersBase._check_access(self)
     if not self._check_paper_protection():
         raise Forbidden
     check_event_locked(self, self.event)
コード例 #4
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)
コード例 #5
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)
コード例 #6
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)
コード例 #7
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)
コード例 #8
0
 def _check_access(self):
     if not self.contrib.can_manage(session.user):
         raise Forbidden
     check_event_locked(self, self.event)