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:
parent
1fa0004492
commit
ef12447f8d
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user