Skip to content

Commit 7d5ba34

Browse files
committed
HOTFIX preloading user module in order to make sure right data gets into cache database
1 parent 24ddf0b commit 7d5ba34

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

public_html/profiles/os2dagsorden/modules/os2intra_simplesaml/os2intra_simplesaml.module

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ function os2intra_simplesaml_boot() {
190190
if (!in_array($_GET['q'], array('saml_login', 'user/logout'))) {
191191
require_once(DRUPAL_ROOT . '/includes/common.inc');
192192
require_once(DRUPAL_ROOT . '/includes/path.inc');
193+
194+
drupal_load('module', 'user');
193195
drupal_goto('saml_login', array('query' => drupal_get_destination()));
194196
}
195197
}
@@ -202,6 +204,8 @@ function os2intra_simplesaml_boot() {
202204
require_once(DRUPAL_ROOT . '/includes/path.inc');
203205
require_once(DRUPAL_ROOT . '/includes/menu.inc');
204206

207+
drupal_load('module', 'user');
208+
205209
if (!$_SESSION['nemlogin_pid'] && strpos($_GET['q'], 'nemid') !== 0) {
206210
//unsetting session in case it had any nemid errors
207211
unset($_SESSION['nemid_login']);

0 commit comments

Comments
 (0)