]> 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>
Fri, 27 Oct 2023 08:38:57 +0000 (10:38 +0200)
commite49b18970b70a647c7b43ab38aa5ee3e80daf63f
tree0e4f2328a97d5a284cb4a005d1c741f763c999c7
parent290037d6a996c56b1a50161dad38a554d390dfb0
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