diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-11-11 16:45:49 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-11-12 19:46:37 +0300 |
commit | 8151e7a0e46aade38c3e52f2f3744f402e8f709d (patch) | |
tree | 40bcba040eb2bbaffdb79ccdf70129043fb01309 /lib | |
parent | 3d5dc7336314a9c4c636c38a52681504fc0c77e3 (diff) |
Always return booleans for Wopi fields
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Db/Wopi.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Db/Wopi.php b/lib/Db/Wopi.php index 529e6b6c..a6238714 100644 --- a/lib/Db/Wopi.php +++ b/lib/Db/Wopi.php @@ -139,4 +139,16 @@ class Wopi extends Entity { return $this->isGuest() ? $this->getOwnerUid() : $this->getEditorUid(); } + public function getCanwrite() { + return (bool)$this->canwrite; + } + + public function getHideDownload() { + return (bool)$this->hideDownload; + } + + public function getDirect() { + return (bool)$this->direct; + } + } |