Example #1
0
 def _checkSessionUser(self):
     if not Config.getInstance().getIsRoomBookingActive():
         raise NotFound(_('The room booking module is not enabled.'))
     RHProtected._checkSessionUser(self)
     if not rb_check_user_access(session.user):
         raise Forbidden(
             _('Your are not authorized to access the room booking system.')
         )
Example #2
0
 def _checkProtection( self ):
     RHProtected._checkSessionUser( self )
     if not self._aw.getUser():
         raise errors.AccessControlError("user")
Example #3
0
 def _checkProtection(self):
     RHProtected._checkSessionUser(self)
     if not self._aw.getUser():
         raise errors.AccessControlError("user")
Example #4
0
 def _checkSessionUser(self):
     if not Config.getInstance().getIsRoomBookingActive():
         raise NotFound(_('The room booking module is not enabled.'))
     RHProtected._checkSessionUser(self)
     if not rb_check_user_access(session.user):
         raise Forbidden(_('Your are not authorized to access the room booking system.'))