From 339b5ec4d92d35be6443dc14998b6eaf0d9ae859 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Philipp=20Sch=C3=BCttl=C3=B6ffel?=
 <schuettloeffel@zqs.uni-hannover.de>
Date: Thu, 17 Oct 2024 10:00:42 +0000
Subject: [PATCH] =?UTF-8?q?Resolve=20"Datenschutzerkl=C3=A4rung=20kann=20w?=
 =?UTF-8?q?=C3=A4hrend=20Auswahl=20der=20Sichtbarkeit/Nutzungsbedingung=20?=
 =?UTF-8?q?nicht=20ge=C3=B6ffnet=20werden"?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Closes #3912

Merge request studip/studip!2768
---
 lib/seminar_open.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/seminar_open.php b/lib/seminar_open.php
index 7e3acf61e82..84215fb0dfd 100644
--- a/lib/seminar_open.php
+++ b/lib/seminar_open.php
@@ -220,7 +220,8 @@ if ($seminar_open_redirected) {
 // Show terms on first login
 if (is_object($GLOBALS['user'])
     && $GLOBALS['user']->needsToAcceptTerms()
-    && !match_route('dispatch.php/terms'))
+    && !match_route('dispatch.php/terms')
+    && !match_route('dispatch.php/siteinfo/*'))
 {
     if (!Request::isXhr()) {
         header('Location: ' . URLHelper::getURL('dispatch.php/terms', ['return_to' => $_SERVER['REQUEST_URI'], 'redirect_token' => Token::create(600)], true));
@@ -239,6 +240,7 @@ if (
         Config::get()->DOZENT_ALWAYS_VISIBLE
         && $perm->get_perm() === 'dozent'
     )
+    && !match_route('dispatch.php/siteinfo/*')
 ) {
     require_once('lib/user_visible.inc.php');
     first_decision($GLOBALS['user']->id);
-- 
GitLab