コード例 #1
0
 def _checkProtection(self):
     RHRoomBookingBase._checkProtection(self)
     if not self._reservation.can_be_cancelled(session.user):
         raise IndicoError("You are not authorized to perform this action")
コード例 #2
0
ファイル: reservations.py プロジェクト: NIIF/indico
 def _checkProtection(self):
     RHRoomBookingBase._checkProtection(self)
     if not self._reservation.can_be_cancelled(session.user):
         raise IndicoError("You are not authorized to perform this action")
コード例 #3
0
ファイル: blockings.py プロジェクト: hennogous/indico
 def _checkProtection(self):
     RHRoomBookingBase._checkProtection(self)
     if not self._block.can_be_deleted(session.user):
         raise IndicoError("You are not authorized to delete this blocking.")
コード例 #4
0
ファイル: event.py プロジェクト: pferreir/indico-backup
 def _checkProtection(self):
     RHConferenceModifBase._checkProtection(self)
     RHRoomBookingBase._checkProtection(self)
コード例 #5
0
ファイル: event.py プロジェクト: pmart123/indico
 def _checkProtection(self):
     RHConferenceModifBase._checkProtection(self)
     RHRoomBookingBase._checkProtection(self)
コード例 #6
0
ファイル: event.py プロジェクト: vireshbackup/indico
 def _checkProtection(self):
     RHManageEventBase._checkProtection(self)
     RHRoomBookingBase._checkProtection(self)
コード例 #7
0
 def _checkProtection(self):
     RHRoomBookingBase._checkProtection(self)
     if not self._block.can_be_deleted(self._getUser()):
         raise IndicoError('You are not authorized to delete this blocking.')