mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-05-02 09:14:50 +02:00
Don't run on OCC
Fixes https://github.com/nextcloud/user_saml/issues/46 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
parent
4bacf21462
commit
cab55e0dc4
|
@ -21,6 +21,12 @@
|
|||
|
||||
require_once __DIR__ . '/../3rdparty/vendor/autoload.php';
|
||||
|
||||
// If we run in CLI mode do not setup the app as it can fail the OCC execution
|
||||
// since the URLGenerator isn't accessible.
|
||||
if(OC::$CLI) {
|
||||
return;
|
||||
}
|
||||
|
||||
$urlGenerator = \OC::$server->getURLGenerator();
|
||||
$config = \OC::$server->getConfig();
|
||||
$request = \OC::$server->getRequest();
|
||||
|
|
Loading…
Reference in a new issue