From b6c6527705695a343b055f89bdde5ec497914ff1 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 21 Apr 2021 08:58:35 +0200 Subject: Fix unauthorized OCS status in provisioning Signed-off-by: Joas Schilling --- lib/private/AppFramework/OCS/V1Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/AppFramework/OCS') diff --git a/lib/private/AppFramework/OCS/V1Response.php b/lib/private/AppFramework/OCS/V1Response.php index 9ccff9ac98c..8ad36bada7e 100644 --- a/lib/private/AppFramework/OCS/V1Response.php +++ b/lib/private/AppFramework/OCS/V1Response.php @@ -37,7 +37,7 @@ class V1Response extends BaseResponse { */ public function getStatus() { $status = parent::getStatus(); - if ($status === Http::STATUS_FORBIDDEN || $status === OCSController::RESPOND_UNAUTHORISED) { + if ($status === OCSController::RESPOND_UNAUTHORISED) { return Http::STATUS_UNAUTHORIZED; } -- cgit v1.2.3