Skip to content
Snippets Groups Projects
Commit 339b5ec4 authored by Philipp Schüttlöffel's avatar Philipp Schüttlöffel Committed by Jan-Hendrik Willms
Browse files

Resolve "Datenschutzerklärung kann während Auswahl der...

Resolve "Datenschutzerklärung kann während Auswahl der Sichtbarkeit/Nutzungsbedingung nicht geöffnet werden"

Closes #3912

Merge request studip/studip!2768
parent 9b99e3b5
No related branches found
No related tags found
No related merge requests found
...@@ -220,7 +220,8 @@ if ($seminar_open_redirected) { ...@@ -220,7 +220,8 @@ if ($seminar_open_redirected) {
// Show terms on first login // Show terms on first login
if (is_object($GLOBALS['user']) if (is_object($GLOBALS['user'])
&& $GLOBALS['user']->needsToAcceptTerms() && $GLOBALS['user']->needsToAcceptTerms()
&& !match_route('dispatch.php/terms')) && !match_route('dispatch.php/terms')
&& !match_route('dispatch.php/siteinfo/*'))
{ {
if (!Request::isXhr()) { if (!Request::isXhr()) {
header('Location: ' . URLHelper::getURL('dispatch.php/terms', ['return_to' => $_SERVER['REQUEST_URI'], 'redirect_token' => Token::create(600)], true)); header('Location: ' . URLHelper::getURL('dispatch.php/terms', ['return_to' => $_SERVER['REQUEST_URI'], 'redirect_token' => Token::create(600)], true));
...@@ -239,6 +240,7 @@ if ( ...@@ -239,6 +240,7 @@ if (
Config::get()->DOZENT_ALWAYS_VISIBLE Config::get()->DOZENT_ALWAYS_VISIBLE
&& $perm->get_perm() === 'dozent' && $perm->get_perm() === 'dozent'
) )
&& !match_route('dispatch.php/siteinfo/*')
) { ) {
require_once('lib/user_visible.inc.php'); require_once('lib/user_visible.inc.php');
first_decision($GLOBALS['user']->id); first_decision($GLOBALS['user']->id);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment