diff options
-rw-r--r-- | lib/TokenManager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/TokenManager.php b/lib/TokenManager.php index 357720ed..d212b4e3 100644 --- a/lib/TokenManager.php +++ b/lib/TokenManager.php @@ -90,7 +90,7 @@ class TokenManager { $row = new Wopi(); $serverHost = $this->urlGenerator->getAbsoluteURL('/');//$this->request->getServerProtocol() . '://' . $this->request->getServerHost(); - $token = $row->generateFileToken($fileId, $file->getOwner()->getUID(), $this->userId, $version, $updatable, $serverHost); + $token = $row->generateFileToken($fileId, $file->getOwner()->getUID(), $this->userId, $version, (int)$updatable, $serverHost); try { |