File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
apps/dav/lib/Connector/Sabre Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 88 */
99namespace OCA \DAV \Connector \Sabre ;
1010
11- use OCA \DAV \Connector \PermissionsTrait ;
1211use Psr \Log \LoggerInterface ;
1312use Sabre \DAV \Exception \NotFound ;
1413use Sabre \DAV \Server ;
2221 */
2322class AddExtraHeadersPlugin extends \Sabre \DAV \ServerPlugin {
2423
25- use PermissionsTrait;
26-
2724 private ?Server $ server = null ;
2825
2926 public function __construct (
@@ -64,10 +61,9 @@ private function afterPut(RequestInterface $request, ResponseInterface $response
6461 }
6562 }
6663
67- $ permissions = $ this ->getPermissionString (
68- $ this ->isPublic ,
69- $ node ->getDavPermissions ()
70- );
64+ $ permissions = $ this ->isPublic ? $ node ->getPublicDavPermissions () :
65+ $ node ->getDavPermissions ();
66+
7167 $ response ->setHeader ('X-NC-Permissions ' , $ permissions );
7268 }
7369}
You can’t perform that action at this time.
0 commit comments