Skip to content

Commit

Permalink
Merge pull request #342 from semseysandor/kcfinder-session
Browse files Browse the repository at this point in the history
dev/drupal#179 - kcfinder - Explicit start of Drupal session
  • Loading branch information
demeritcowboy authored May 9, 2022
2 parents 8586e1b + 7bb0eb8 commit 96b7c24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kcfinder/integration/civicrm.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ function authenticate_drupal8($config) {
}
}
}

// Start Drupal's own session now, so changes to $_SESSION won't get overwritten later
\Drupal::service('session')->start();

// check if user has access permission...
if (CRM_Core_Permission::check('access CiviCRM')) {
return true;
Expand Down

0 comments on commit 96b7c24

Please sign in to comment.