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

Commit

Permalink
Fix collabora on smb + session credential workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
c12simple committed Sep 18, 2017
1 parent a9009ea commit dc3e5d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/plugins/editor.libreoffice/Driver.php
Expand Up @@ -131,6 +131,11 @@ public function switchAction(ServerRequestInterface &$request, ResponseInterface
$payload["uri"] = $uri;
$payload["task"] = $task;

// Enable access to smb + session credential workspace
$payload["session_id"] = session_id();
$encryptedString = SessionService::fetch(MemorySafe::SAFE_CREDENTIALS_KEY);
CacheService::save(AJXP_CACHE_SERVICE_NS_SHARED, session_id(), $encryptedString, 24*60*60);

$jwt = JWT::encode($payload, $private);

$resp = [
Expand Down

0 comments on commit dc3e5d5

Please sign in to comment.