Skip to content

Commit 6ead846

Browse files
committed
fix: check acl
1 parent 7b4ae40 commit 6ead846

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

syntax/bpmnio.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ private function buildAttributes($string)
9393

9494
private function getMedia($src)
9595
{
96+
if (!auth_quickaclcheck($src) >= AUTH_READ) {
97+
return "Error: Access denied for file $src";
98+
}
99+
96100
$file = mediaFN($src);
97101

98102
if (!file_exists($file) || !is_readable($file)) {

0 commit comments

Comments
 (0)