allow all users to receipt a document

This commit is contained in:
Uwe Steinmann 2016-10-05 11:14:47 +02:00
parent 1c7bc39c80
commit 736b916286

View File

@ -60,7 +60,7 @@ $folder = $document->getFolder();
// Retrieve a list of all users and groups that have read rights. // Retrieve a list of all users and groups that have read rights.
// Afterwards, reorganize them in two arrays with its key being the // Afterwards, reorganize them in two arrays with its key being the
// userid or groupid // userid or groupid
$docAccess = $document->getReadAccessList(); $docAccess = $document->getReadAccessList(true, true);
$accessIndex = array("i"=>array(), "g"=>array()); $accessIndex = array("i"=>array(), "g"=>array());
foreach ($docAccess["users"] as $i=>$da) { foreach ($docAccess["users"] as $i=>$da) {
$accessIndex["i"][$da->getID()] = $da; $accessIndex["i"][$da->getID()] = $da;