1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-12-02 14:24:10 +01:00

Finnaly fix permissions

This commit is contained in:
LEDfan 2014-04-02 21:16:08 +02:00
parent 1fa0004492
commit ef12447f8d

View File

@ -100,7 +100,7 @@ class LocalUsers extends AbstractBackend {
return array(); return array();
} else { } else {
while($row = $result->fetchRow()){ while($row = $result->fetchRow()){
$row['permissions'] = \OCP\PERMISSION_READ; $row['permissions'] = \OCP\PERMISSION_READ | \OCP\PERMISSION_UPDATE;
$contacts[] = $row; $contacts[] = $row;
} }
@ -158,7 +158,7 @@ class LocalUsers extends AbstractBackend {
return array(); return array();
} else { } else {
$row = $result->fetchRow(); $row = $result->fetchRow();
$row['permissions'] = \OCP\PERMISSION_READ; $row['permissions'] = \OCP\PERMISSION_READ | \OCP\PERMISSION_UPDATE;
return $row; return $row;
} }
} catch(\Exception $e) { } catch(\Exception $e) {