diff options
author | Robin Appelman <robin@icewind.nl> | 2023-08-16 12:12:14 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-08-18 08:08:34 +0000 |
commit | dbc80b02b9cdc4bdf8bff0cac6d5521962df754c (patch) | |
tree | 7077e03c804e653fecc333e151733fc770c768e1 /apps/dav | |
parent | 7901a7059ff085d6b491212aa3933d426bedd809 (diff) | |
download | nextcloud-server-dbc80b02b9cdc4bdf8bff0cac6d5521962df754c.tar.gz nextcloud-server-dbc80b02b9cdc4bdf8bff0cac6d5521962df754c.zip |
don't bother checking dav acl's in files
any permissions for files is handled in the filesystem layer anyway
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/DavAclPlugin.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/dav/lib/Connector/Sabre/DavAclPlugin.php b/apps/dav/lib/Connector/Sabre/DavAclPlugin.php index 7fa94d7b903..f574cec00c6 100644 --- a/apps/dav/lib/Connector/Sabre/DavAclPlugin.php +++ b/apps/dav/lib/Connector/Sabre/DavAclPlugin.php @@ -75,6 +75,11 @@ class DavAclPlugin extends \Sabre\DAVACL\Plugin { } public function propFind(PropFind $propFind, INode $node) { + if ($node instanceof Node) { + // files don't use dav acls + return; + } + // If the node is neither readable nor writable then fail unless its of // the standard user-principal if (!($node instanceof User)) { |