mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-26257' of git://github.com/bostelm/moodle
This commit is contained in:
commit
631c9c02ab
1 changed files with 4 additions and 4 deletions
|
@ -193,11 +193,11 @@ class auth_plugin_shibboleth extends auth_plugin_base {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function logoutpage_hook() {
|
function logoutpage_hook() {
|
||||||
global $redirect;
|
global $SESSION, $redirect;
|
||||||
|
|
||||||
// Only do this if logout handler is defined
|
// Only do this if logout handler is defined, and if the user is actually logged in via Shibboleth
|
||||||
if (
|
if ( isset($SESSION->shibboleth_session_id)
|
||||||
isset($this->config->logout_handler)
|
&& isset($this->config->logout_handler)
|
||||||
&& !empty($this->config->logout_handler)
|
&& !empty($this->config->logout_handler)
|
||||||
){
|
){
|
||||||
// Check if there is an alternative logout return url defined
|
// Check if there is an alternative logout return url defined
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue