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.') )
def _checkProtection( self ): RHProtected._checkSessionUser( self ) if not self._aw.getUser(): raise errors.AccessControlError("user")
def _checkProtection(self): RHProtected._checkSessionUser(self) if not self._aw.getUser(): raise errors.AccessControlError("user")
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.'))