diff options
author | Joas Schilling <coding@schilljs.com> | 2017-05-10 14:03:14 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-08-01 13:55:07 +0200 |
commit | 89238164e12ba8532cdefed16a789cbd4e4efde5 (patch) | |
tree | d233da3070e605bd27603fff4e1a26a5082c42e6 /apps/dav/lib/DAV | |
parent | 0ebdf871e02653bf7e65bf5bdefaec7f92d3c677 (diff) | |
download | nextcloud-server-89238164e12ba8532cdefed16a789cbd4e4efde5.tar.gz nextcloud-server-89238164e12ba8532cdefed16a789cbd4e4efde5.zip |
Fix comparisons in the dav app
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav/lib/DAV')
-rw-r--r-- | apps/dav/lib/DAV/Sharing/Backend.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/DAV/Sharing/Backend.php b/apps/dav/lib/DAV/Sharing/Backend.php index f662d8e1b80..6cc5e3b6f50 100644 --- a/apps/dav/lib/DAV/Sharing/Backend.php +++ b/apps/dav/lib/DAV/Sharing/Backend.php @@ -170,7 +170,7 @@ class Backend { 'href' => "principal:${row['principaluri']}", 'commonName' => isset($p['{DAV:}displayname']) ? $p['{DAV:}displayname'] : '', 'status' => 1, - 'readOnly' => ($row['access'] == self::ACCESS_READ), + 'readOnly' => ((int) $row['access'] === self::ACCESS_READ), '{http://owncloud.org/ns}principal' => $row['principaluri'], '{http://owncloud.org/ns}group-share' => is_null($p) ]; |