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

Commit

Permalink
NoActiveWorkspace => disconnect before throwing an AuthRequiredExcept…
Browse files Browse the repository at this point in the history
…ion, and pass a message.
  • Loading branch information
cdujeu committed Oct 13, 2016
1 parent 1c95a90 commit b52b52a
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -32,6 +32,7 @@
use Pydio\Core\Model\ContextInterface;
use Pydio\Core\PluginFramework\PluginsService;

use Pydio\Core\Services\AuthService;
use Pydio\Core\Services\ConfService;
use Zend\Diactoros\Response\EmptyResponse;

Expand Down Expand Up @@ -68,7 +69,8 @@ public static function handleRequest(\Psr\Http\Message\ServerRequestInterface $r

} catch (NoActiveWorkspaceException $ex){

throw new AuthRequiredException();
AuthService::disconnect();
throw new AuthRequiredException("", $ex->getMessage());

} catch(ActionNotFoundException $a){

Expand Down

0 comments on commit b52b52a

Please sign in to comment.