mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 07:22:11 +00:00
check access on document in 'searchdocument'
This commit is contained in:
parent
3283d35db8
commit
5a806f729b
|
@ -133,7 +133,9 @@ switch($command) {
|
|||
if($hits) {
|
||||
$result = array();
|
||||
foreach($hits['docs'] as $hit) {
|
||||
$result[] = $hit->getID().'#'.$hit->getName();
|
||||
if($hit->getAccessMode($user, 'search') >= M_READ) {
|
||||
$result[] = $hit->getID().'#'.$hit->getName();
|
||||
}
|
||||
}
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode($result);
|
||||
|
|
Loading…
Reference in New Issue
Block a user