Skip to content
Snippets Groups Projects
Commit 4890200c authored by Jaime Pérez's avatar Jaime Pérez
Browse files

Merge pull request #140 from thijskh/master

protectmetadata was not enforced for SP metadata.
parents 452eaef0 62bd4505
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,9 @@ if (!array_key_exists('PATH_INFO', $_SERVER)) { ...@@ -5,6 +5,9 @@ if (!array_key_exists('PATH_INFO', $_SERVER)) {
} }
$config = SimpleSAML_Configuration::getInstance(); $config = SimpleSAML_Configuration::getInstance();
if ($config->getBoolean('admin.protectmetadata', false)) {
SimpleSAML_Utilities::requireAdmin();
}
$sourceId = substr($_SERVER['PATH_INFO'], 1); $sourceId = substr($_SERVER['PATH_INFO'], 1);
$source = SimpleSAML_Auth_Source::getById($sourceId); $source = SimpleSAML_Auth_Source::getById($sourceId);
if ($source === NULL) { if ($source === NULL) {
......
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