allow revision only for users allowed by settings, fix html

This commit is contained in:
Uwe Steinmann 2016-10-05 11:15:06 +02:00
parent 736b916286
commit 70db94f83c

View File

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