]> source.dussan.org Git - nextcloud-server.git/commit
fix(isLegitimatedForUserId): Setup mountpoints to check file access
authorJonas <jonas@freesources.org>
Mon, 18 Sep 2023 14:20:17 +0000 (16:20 +0200)
committerJonas <jonas@freesources.org>
Mon, 23 Oct 2023 18:47:16 +0000 (20:47 +0200)
commit9193d8be40d216c06919f9dc476b1fdc6a43c374
tree08e1613d3478ad4a7fd089e76a78a3882218e693
parentf88c34b604e5e82950d65e4531403ff5930a2637
fix(isLegitimatedForUserId): Setup mountpoints to check file access

This fixes workflows on groupfolders, as it will consider access to
files in groupfolders.

It also fixes false positives where access to files was limited by other
means not taken into account before, e.g. access control.

For postDelete events, check for permissions of the parent folder
instead, as the file itself no longer exists.

Fixes: nextcloud/flow_notifications#71
Signed-off-by: Jonas <jonas@freesources.org>
apps/workflowengine/lib/Entity/File.php
apps/workflowengine/tests/ManagerTest.php