Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
bugfix: basic authentication not working at all
Browse files Browse the repository at this point in the history
  • Loading branch information
theodortruffer committed Aug 31, 2017
1 parent 75f9f74 commit 72bd492
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions classes/class.ilOwnCloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ protected function getArrayForDb() {
public function getOwnCloudApp() {
$app = ilOwnCloudPlugin::getInstance()->getOwnCloudApp($this);

$config = new ownclConfig();
if (!$config->getOAuth2Active()) {
return $app;
}

$status = $app->getOwnCloudClient()->getHTTPStatus();
if ($status == 401 && $this->getCloudModulObject()->getAuthComplete()) {
$this->getCloudModulObject()->setAuthComplete(false);
Expand Down
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
$id = 'owncld';
$version = '2.0.1';
$version = '2.0.2';
$ilias_min_version = '5.0.0';
$ilias_max_version = '5.2.999';
$responsible = 'Theodor Truffer';
Expand Down

0 comments on commit 72bd492

Please sign in to comment.