Skip to content

Commit a10ec38

Browse files
committed
add acl check
1 parent 82147d4 commit a10ec38

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

action.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ function ajax_viewer_provider( Doku_Event &$event ) {
6060
'popupscript' => array()
6161
);
6262
$ID = getID('id');
63+
64+
if (auth_quickaclcheck($ID) < AUTH_READ) {
65+
echo "read permission error";
66+
return;
67+
}
6368

6469
switch($event->data) {
6570
case '_popup_load_file' :

0 commit comments

Comments
 (0)