예제 #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
 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
 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
 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.')