Skip to content
Snippets Groups Projects
Commit 02ea9263 authored by Olav Morken's avatar Olav Morken
Browse files

core_ACL: Make config/acl.php optional.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1721 44740490-163a-0410-bde0-09ae8108e29a
parent 88ed9fbe
No related branches found
No related tags found
No related merge requests found
...@@ -56,7 +56,7 @@ class sspmod_core_ACL { ...@@ -56,7 +56,7 @@ class sspmod_core_ACL {
private static function getById($id) { private static function getById($id) {
assert('is_string($id)'); assert('is_string($id)');
$config = SimpleSAML_Configuration::getConfig('acl.php'); $config = SimpleSAML_Configuration::getOptionalConfig('acl.php');
if (!$config->hasValue($id)) { if (!$config->hasValue($id)) {
throw new SimpleSAML_Error_Exception('No ACL with id ' . var_export($id, TRUE) . ' in config/acl.php.'); throw new SimpleSAML_Error_Exception('No ACL with id ' . var_export($id, TRUE) . ' in config/acl.php.');
} }
......
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