Skip to content
Snippets Groups Projects
Commit a2060630 authored by Jacob Christiansen's avatar Jacob Christiansen
Browse files

Do not display services that have consent disabled.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1978 44740490-163a-0410-bde0-09ae8108e29a
parent 0164d518
No related branches found
No related tags found
No related merge requests found
......@@ -124,7 +124,14 @@ if($session->getIdP() != null) {
$idp_entityid = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted');
$idp_metadata = $metadata->getMetaData($idp_entityid, 'saml20-idp-hosted');
}
// Remove services, whitch have consent disabled
foreach($idp_metadata['consent.disable'] AS $disable) {
if(array_key_exists($disable, $all_sp_metadata)) {
unset($all_sp_metadata[$disable]);
}
}
SimpleSAML_Logger::info('consentAdmin: '.$idp_entityid);
// Calc correct source
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment